-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 1.03 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '3.7'
services:
# List of services
redis_storage:
container_name: redis-local
restart: always
image: redis:alpine
# Map the ports | bind to localhost
ports:
- '127.0.0.1:6374:6374'
# Set up a dedicated network
networks:
- moodli
main_app:
container_name: moodli
env_file: docker.env
restart: always
# Directory of the dockerfile
build: .
# Name of the image, not the image to pull
image: ${IMAGE_NAME}
# Map the ports | bind to localhost
ports:
- '127.0.0.1:3003:3003'
# Link it to another service
depends_on:
- redis_storage
# Set env vars
environment:
- REDIS_HOST=redis-local
- PORT=3003
- NODE_ENV=production
- CONSUMER_KEY=${CONSUMER_KEY}
- CONSUMER_SECRET=${CONSUMER_SECRET}
- ACCESS_TOKEN=${ACCESS_TOKEN}
- ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET}
# Set up a dedicated network
networks:
- moodli
# Define the network type
networks:
moodli:
driver: bridge