-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
58 lines (52 loc) · 1.13 KB
/
docker-compose-dev.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.8"
x-build-args: &build_args
INSTALL_PYTHON_VERSION: "3.11.3"
INSTALL_NODE_VERSION: "18.16.0"
x-default-volumes: &default_volumes
volumes:
- ./:/app
- node-modules:/app/node_modules
services:
flask-dev:
build:
context: .
target: development
args:
<<: *build_args
image: "clocktime-development"
ports:
- "8080:5000"
- "2992:2992"
<<: *default_volumes
flask-prod:
build:
context: .
target: production
args:
<<: *build_args
image: "clocktime-production"
#x-aws-pull_credentials: "arn:aws:secretsmanager:us-east-1:12345:secret:${{secrets.DockerHubAccessToken}}"
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: "clocktime-manage"
stdin_open: true
tty: true
<<: *default_volumes
volumes:
node-modules: