-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
65 lines (57 loc) · 1.17 KB
/
docker-compose-dev.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3'
services:
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
args:
- BASE_PATH=$BASE_PATH
container_name: ${NGINX_HOST}
restart: always
environment:
- API_PORT=${API_PORT}
- API_HOST=${API_HOST}
- BASE_PATH=${BASE_PATH}
ports:
- "94:${API_PORT}"
mongo:
image: mongo:6.0
container_name: "${DB_HOST}"
env_file:
- .env
restart: always
volumes:
- ./mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh
- mongodb-data:${MONGODB_DATA_DIR}
ports:
- "${DB_PORT}:27017"
server:
build: ./server
container_name: ${API_HOST}
restart: always
volumes:
- ./server:/server
env_file:
- .env
depends_on:
- redis
ports:
- "5000:5000" # Expose
celery:
build: ./server
command: celery --app app.celery_app worker --loglevel=info --autoscale=1,1 --max-tasks-per-child=1
restart: always
volumes:
- ./server:/server
env_file:
- .env
depends_on:
- server
- mongo
- redis
redis:
image: "redis:alpine"
volumes:
app:
mongodb-data:
node_modules: