-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.05 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
49
50
51
52
53
54
version: '3.7'
services:
backend:
build:
context: ./services/backend
dockerfile: Dockerfile
command: gunicorn start:create_app --bind 0.0.0.0:8080 --worker-class aiohttp.GunicornWebWorker
volumes:
- ./services/backend/:/usr/src/backend/
expose:
- 8080
env_file:
- ./.env
depends_on:
- redis
networks:
- default
nginx:
build: ./services/nginx
volumes:
- static_volume:/usr/src/backend/project/static
ports:
- 1228:228
depends_on:
- backend
networks:
- default
redis:
image: "redis"
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
stop_grace_period: "${DOCKER_STOP_GRACE_PERIOD:-3s}"
expose:
- 6379
volumes:
- "redis:/data"
front:
container_name: front
build:
context: services/front
dockerfile: Dockerfile
volumes:
- '.:/usr/src/front'
- '/usr/src/front/node_modules'
ports:
- 80:3000
env_file:
- .env.front.pub
volumes:
static_volume:
redis: { }