-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (66 loc) · 1.59 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
version: "3.9"
services:
analyst:
build:
context: ./.
target: flask
networks:
- nginx
environment:
- FLASK_APP=flask_app.analyst.routes:app
env_file:
./.env.analyst.conf
restart: unless-stopped
volumes:
# bind mount
- /home/ubuntu/aws_data:/volumes/aws_data:ro
# volumes
- "scratch-path:/scratch-path"
- "webpack-output:/volumes/webpack-output"
- "static-files:/home/specify/sppy/frontend/static"
broker:
build:
context: ./.
target: flask
networks:
- nginx
environment:
- FLASK_APP=flask_app.broker.routes:app
env_file:
./.env.broker.conf
restart: unless-stopped
volumes:
- "scratch-path:/scratch-path"
- "webpack-output:/volumes/webpack-output"
- "static-files:/home/specify/sppy/frontend/static"
nginx:
image: nginx:alpine
restart: unless-stopped
depends_on:
- broker
- analyst
- front-end
networks:
- nginx
ports:
- "80:80"
- "443:443"
volumes:
- "static-files:/volumes/static-files:ro"
- "webpack-output:/volumes/webpack-output:ro"
- "./sppy/frontend/static/:/var/www/:ro"
- "./config/nginx.conf:/etc/nginx/conf.d/default.conf:ro"
- "./config/fullchain.pem:/etc/letsencrypt/fullchain.pem:ro"
- "./config/privkey.pem:/etc/letsencrypt/privkey.pem:ro"
front-end:
build:
context: ./.
target: front-end
volumes:
- "webpack-output:/home/node/dist"
volumes:
scratch-path:
static-files:
webpack-output:
networks:
nginx: