-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
31 lines (29 loc) · 843 Bytes
/
docker-compose.prod.yml
File metadata and controls
31 lines (29 loc) · 843 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.8'
services:
web:
build: .
ports:
- "8000:8000"
volumes:
- ./static:/app/static
- ./templates:/app/templates
environment:
- FLASK_ENV=production
- FLASK_APP=main.py
# Redis Configuration
- REDIS_HOST=ehms-redis3.redis.cache.windows.net
- REDIS_PORT=6380
- REDIS_PASSWORD=$redis_password # Use environment variable for security
- REDIS_SSL=True
# PostgreSQL Configuration
- POSTGRES_DB=ehms
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=$postgres_password # Use environment variable for security
- POSTGRES_HOST=ehms-db2.postgres.database.azure.com
- POSTGRES_PORT=5432
command: gunicorn --bind 0.0.0.0:8000 main:app --timeout 120
networks:
- web-network
networks:
web-network:
driver: bridge