-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (53 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
59 lines (53 loc) · 1.21 KB
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
version: '3'
services:
backend:
container_name: yab_testing_system.backend
build:
context: .
dockerfile: ./docker/backend.Dockerfile
networks:
- yab.network
restart: always
frontend:
container_name: yab_testing_system.frontend
build:
context: .
dockerfile: ./docker/frontend.Dockerfile
networks:
- yab.network
broker:
container_name: yab_testing_system.broker
image: 'redis:alpine'
command: redis-server /code/config/broker.conf
networks:
- yab.network
restart: always
celery:
container_name: yab_testing_system.celery
build:
context: .
dockerfile: ./docker/backend.Dockerfile
command: bash -c "cd /code/backend && celery -A app.celery worker -l info"
networks:
- yab.network
depends_on:
- broker
restart: always
proxy:
container_name: yab_testing_system.proxy
build:
context: .
dockerfile: ./docker/proxy.Dockerfile
networks:
- yab.network
depends_on:
- frontend
- backend
volumes:
- ./docker/nginx.proxy.conf:/etc/nginx/nginx.conf:ro
- ./media:/code/media
ports:
- 80:80
restart: always
networks:
yab.network: