-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
58 lines (52 loc) · 1.05 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
version: "3.6"
x-build-args: &build_args
INSTALL_PYTHON_VERSION: "3.11"
INSTALL_NODE_VERSION: "20"
x-default-volumes: &default_volumes
volumes:
- ./:/app
- node-modules:/app/node_modules
- ./dev.db:/tmp/dev.db
services:
flask-dev:
build:
context: .
target: development
args:
<<: *build_args
image: "my_flask_app-development"
ports:
- "8080:5000"
- "2992:2992"
<<: *default_volumes
flask-prod:
build:
context: .
target: production
args:
<<: *build_args
image: "my_flask_app-production"
ports:
- "8080:5000"
environment:
FLASK_ENV: production
FLASK_DEBUG: 0
LOG_LEVEL: info
GUNICORN_WORKERS: 4
<<: *default_volumes
manage:
build:
context: .
target: development
args:
<<: *build_args
entrypoint: flask
environment:
FLASK_ENV: production
FLASK_DEBUG: 0
image: "my_flask_app-manage"
stdin_open: true
tty: true
<<: *default_volumes
volumes:
node-modules: