-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (35 loc) · 985 Bytes
/
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
version: '2'
# Decode TMP stack
# Nginx used only for serving static files
services:
# PROXY AND STATIC FILE SERVE
decode_static_and_proxy:
restart: always
container_name: decode_static
image: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf:ro
- ./logs:/var/log/nginx
- ./decode_pwa/dist:/html
# - ./proxy-admin-test:/html/proxy-admin
- ./domains:/domains
- ./certs:/certs
# API FLASK
decode_server:
restart: always
container_name: decode_server
volumes:
- ./decode_server/server:/app
build: ./dockerfiles/flask-python3.7
ports:
- "5005:80"
environment:
- FLASK_APP=api.py
- FLASK_DEBUG=0
- 'RUN=flask run --host=0.0.0.0 --port=80'
#command: flask run --host=0.0.0.0 --port=80
# Infinite loop, to keep it alive, for debugging
# command: bash -c "while true; do echo 'sleeping...' && sleep 10; done"