-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (29 loc) · 893 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (29 loc) · 893 Bytes
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
version: '3.5'
services:
thehalomod-server:
build: .
ports:
- ${FLASK_RUN_PORT}:${FLASK_RUN_PORT}
links:
- redis
container_name: hmf-server
# The default stop signal for flask apps is SIGINT, while by default
# docker uses SIGTERM
stop_signal: SIGINT
restart: unless-stopped
environment:
- FLASK_RUN_PORT=${FLASK_RUN_PORT}
- FLASK_RUN_HOST=${FLASK_RUN_HOST}
- FLASK_ENV="production"
- FLASK_DEBUG=False
- FLASK_APP=halomod_app
# Set so that python will output print statements when flask is running
- PYTHONUNBUFFERED=False
# Set so that the HTTPS cookies will go through on the remote server.
# The behavior is defined in "config.py"
- USE_HTTPS_SESSION=True
redis:
image: "redis"
container_name: hmf-redis-cache
expose:
- 6379