-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
55 lines (49 loc) · 1.15 KB
/
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
version: "3.9"
services:
bison:
build:
context: ./.
target: flask
networks:
- nginx
environment:
- FLASK_APP=flask_app.bison.routes:app
env_file:
./.env.conf
restart: unless-stopped
volumes:
# bind mount from host machine
- "/home/ubuntu/aws_data:/volumes/bison_data"
# volumes
- "scratch-path:/scratch-path"
- "webpack-output:/volumes/webpack-output"
- "static-files:/home/bison/bison/frontend/static"
nginx:
image: nginx:alpine
restart: unless-stopped
depends_on:
- bison
networks:
- nginx
ports:
- "80:80"
- "443:443"
volumes:
- "static-files:/volumes/static-files:ro"
- "webpack-output:/volumes/webpack-output:ro"
# bind mounts from host machine
- "/etc/letsencrypt:/etc/letsencrypt:ro"
- "./config/nginx.conf:/etc/nginx/conf.d/default.conf:ro"
- "./bison/frontend/static/:/var/www/:ro"
# front-end:
# build:
# context: ./.
# target: front-end
# volumes:
# - "webpack-output:/home/node/dist"
volumes:
scratch-path:
static-files:
webpack-output:
networks:
nginx: