-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
94 lines (85 loc) · 1.71 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '3.3'
volumes:
aiatncstatewebsite_data: {}
services:
backend:
container_name: backend
build:
context: ./backend
target: helper_scripts
depends_on:
- postgres
volumes:
- ./backend:/app
- /app/venv/
command: /start.sh
entrypoint: /entrypoint.sh
restart: on-failure
env_file: .env
frontend:
container_name: frontend
image: node:10-alpine
command: npm run serve
volumes:
- ./.env:/app/.env:ro
- ./frontend:/app
working_dir: /app
restart: on-failure
postgres:
container_name: db
image: postgres:10-alpine
volumes:
- aiatncstatewebsite_data:/var/lib/postgresql/data
env_file: .env
mailhog:
container_name: mailhog
image: mailhog/mailhog
ports:
- "8025:8025"
logging:
driver: none
nginx:
container_name: proxy
image: nginx:alpine
ports:
- "8000:80"
depends_on:
- backend
volumes:
- ./backend/media/:/media/
- ./backend/staticfiles/:/staticfiles/
- ./nginx/dev.conf:/etc/nginx/nginx.conf:ro
logging:
driver: none
redis:
container_name: redis
image: redis:alpine
celery:
container_name: celery
build:
context: ./backend
target: base
volumes:
- ./backend:/app
- /app/venv/
env_file: .env
depends_on:
- redis
entrypoint: /celery.sh
environment:
- RUNNING_TESTS=n
celery-beat:
container_name: celery-beat
build:
context: ./backend
target: base
volumes:
- ./backend:/app
- /app/venv/
env_file:
- .env
depends_on:
- redis
entrypoint: /celery-beat.sh
environment:
- RUNNING_TESTS=n