-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 1.4 KB
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
version: "2.1"
services:
dev:
image: ${DOCKER_IMAGE:-approov/quickstart-python-flask-token-check:dev}
build:
context: ./docker
args:
BUILD_RELEASE_FROM: ${BUILD_RELEASE_FROM:-main} # pass through to container from .env file
env_file:
- .env
environment:
- FLASK_ENV=${FLASK_ENV:-development}
working_dir: "/home/python/workspace"
command: "flask run -h 0.0.0.0 --port ${HTTP_PORT? Missing value for: HTTP_PORT}"
volumes:
- ./:/home/python/workspace
ports:
- 127.0.0.1:${HTTP_PORT:-8002}:${HTTP_PORT:-8002}
networks:
- default
python:
image: ${DOCKER_IMAGE:-approov/quickstart-python-flask-token-check}
build:
context: ./docker
args:
BUILD_RELEASE_FROM: ${BUILD_RELEASE_FROM:-main} # pass through to container from .env file
restart: always
env_file: .env
environment:
- FLASK_ENV=${FLASK_ENV:-production}
networks:
- traefik
command: "flask run -h 0.0.0.0 --port ${HTTP_PORT? Missing value for: HTTP_PORT}"
volumes:
- ./:/home/python/workspace
labels:
- "traefik.enable=true"
- "traefik.backend=${SHAPES_PYTHON_FLASK_DOMAIN? Missing value for: SHAPES_PYTHON_FLASK_DOMAIN}"
- "traefik.docker.network=traefik"
- "traefik.port=${HTTP_PORT}"
- "traefik.frontend.rule=Host:${SHAPES_PYTHON_FLASK_DOMAIN}"
networks:
traefik:
external: true