-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (62 loc) · 1.34 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
version: '3'
services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
volumes:
- .:/src
- ./Docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- web
web:
build: .
container_name: django
command: bash Docker/django_docker_startup_command.sh
depends_on:
- website_db
- data_db
expose:
- "8000"
volumes:
- .:/src
environment:
- DOCKER=1
- PRODUCTION_DATABASE=1
- DATA_DATABASE_HOST=data_db
- WEBSITE_DATABASE_HOST=website_db
- ZENTERIO_PWD=${ZENTERIO_PWD}
website_db:
image: postgres:latest
container_name: postgres
data_db:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=example
- MYSQL_DATABASE=main
trending:
build: .
container_name: trend
command: bash Docker/trending_startup_script.sh
depends_on:
- data_db
dns: 8.8.8.8
volumes:
- .:/src
environment:
- PRODUCTION_DATABASE=1
- RUN_TREND_CONT=1
- DATA_DATABASE_HOST=data_db
recommendation:
build: .
container_name: recommendation
command: bash Docker/recommendation_startup_script.sh
depends_on:
- data_db
- trending
volumes:
- .:/src
environment:
- PRODUCTION_DATABASE=1
- DATA_DATABASE_HOST=data_db