-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (82 loc) · 2.2 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
version: '3.7'
services:
frontend:
build:
context: .
dockerfile: .Dockerfile.webui
ports:
- "8001:3000"
volumes:
- "./jasmine-webui:/opt/jasmine-webui"
database:
image: mysql:8.0.22
command: --default-authentication-plugin=mysql_native_password
volumes:
- "./config/dev/dev_database_dump.sql:/docker-entrypoint-initdb.d/dev_database_dump.sql"
- "./config/dev/init_mysql_container_grants.sql:/docker-entrypoint-initdb.d/init_mysql_container_grants.sql"
environment:
MYSQL_DATABASE: "jasmine_web"
MYSQL_USER: "jasmine_web_su"
MYSQL_PASSWORD: "password"
MYSQL_ROOT_PASSWORD: "root"
TZ: "America/New_York"
ports:
- "3305:3306"
worker_router:
image: rabbitmq:3.9-management
environment:
- RABBITMQ_DEFAULT_USER=username
- RABBITMQ_DEFAULT_PASS=password
ports:
- "5672:5672"
- "15672:15672"
redis:
image: redis:latest
ports:
- "6379:6379"
workers:
build:
context: .
dockerfile: .Dockerfile.worker
volumes:
- "./jasmine-models:/opt/jasmine-models"
- "./jasmine-sql:/opt/jasmine-sql"
- "./jasmine-etl:/opt/jasmine-etl"
- "./config/dev/jasmine_worker.cfg:/root/.jasmine_worker.cfg:ro"
- "./config/dev/launch_celery.sh:/opt/launch_celery.sh"
ports:
- "5555:5555"
depends_on:
- database
- worker_router
- redis
environment:
TZ: "America/New_York"
backend:
build:
context: .
dockerfile: .Dockerfile.webserver
ports:
- "8002:8000"
volumes:
- "./jasmine-models:/opt/jasmine-models"
- "./jasmine-sql:/opt/jasmine-sql"
- "./jasmine-etl:/opt/jasmine-etl"
- "./jasmine-webserver:/opt/jasmine-webserver"
- "./config/dev/jasmine_webserver.cfg:/root/.jasmine_webserver.cfg:ro"
- "./config/dev/jasmine_worker.cfg:/root/.jasmine_worker.cfg:ro"
depends_on:
- database
- workers
- redis
environment:
TZ: "America/New_York"
nginx:
image: nginx:stable
volumes:
- "./config/dev/nginx.conf:/etc/nginx/nginx.conf:ro"
ports:
- "8000:80"
depends_on:
- frontend
- backend