-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
136 lines (127 loc) · 2.76 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
services:
data:
image: mariadb:jammy
command: --default-authentication-plugin=mysql_native_password
environment:
MARIADB_ROOT_PASSWORD: plaEee2eer34@
MARIADB_DATABASE: phenome10k
MARIADB_USER: phenome10k
MARIADB_PASSWORD: Aei0_rr2rr2r2r2r
networks:
- phenome10k_net
ports:
- "3306:3306"
volumes:
- ./docker/data/files:/var/files
app-flask:
build:
context: .
dockerfile: docker/app-flask/Dockerfile
environment:
DATABASE_HOST: data
FLASK_APP: phenome10k
FLASK_ENV: development
RPC_HOST: http://app-node:8080
RUN_INIT: '${RUN_INIT}'
env_file:
- docker/.env
- docker/local.env
depends_on:
- data
- app-celery
- app-node
networks:
- phenome10k_net
ports:
- "5000:5000"
volumes:
- ./api:/var/phenome-10k/www/api
- ./static:/var/phenome-10k/www/static
- app_data:/data
app-node:
build:
context: .
dockerfile: docker/app-node/Dockerfile
environment:
DATABASE_HOST: data
NODE_ENV: development
depends_on:
- data
networks:
- phenome10k_net
ports:
- "8080:8080"
volumes:
- ./web/node:/var/phenome-10k/www/web/node
- ./web/build:/var/phenome-10k/www/web/build
- ./web/scss:/var/phenome-10k/www/web/scss
- ./static:/var/phenome-10k/www/static
- app_data:/data
app-rabbitmq:
image: rabbitmq:management-alpine
networks:
- phenome10k_net
ports:
- "15672:15672"
- "5672:5672"
volumes:
- app_data:/data
- ./docker/app-rabbitmq/config:/etc/rabbitmq
app-redis:
image: redis:alpine
networks:
- phenome10k_net
ports:
- "6379:6379"
volumes:
- app_data:/data
app-celery:
build:
context: .
dockerfile: docker/app-celery/Dockerfile
env_file:
- docker/.env
depends_on:
- app-rabbitmq
- app-redis
networks:
- phenome10k_net
volumes:
- app_data:/data
- ./api:/var/phenome-10k/www/api
app-flower:
build:
context: .
dockerfile: docker/app-flower/Dockerfile
environment:
BROKER_API: http://phenome10k:password@app-rabbitmq:15672/api/
env_file:
- docker/.env
depends_on:
- app-celery
networks:
- phenome10k_net
volumes:
- app_data:/data
- ./api:/var/phenome-10k/www/api
lb:
build:
context: .
dockerfile: docker/lb/Dockerfile
depends_on:
- app-flask
- app-node
- app-celery
networks:
phenome10k_net:
ipv4_address: 10.0.10.10
ports:
- "80:80"
networks:
phenome10k_net:
ipam:
config:
- subnet: "10.0.10.0/24"
volumes:
app_data:
lb_data: