feat: add production Dockerfile and docker-compose configuration for backend setup

This commit is contained in:
Sam Chau
2025-02-05 13:51:47 +10:30
parent 33a24b764d
commit b335ca73ed
5 changed files with 94 additions and 35 deletions

21
docker-compose.prod.yml Normal file
View File

@@ -0,0 +1,21 @@
# docker-compose.prod.yml
version: '3.8'
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile.prod
ports:
- '5000:5000'
volumes:
- profilarr_data:/config
environment:
- FLASK_ENV=production
- TZ=Australia/Adelaide
env_file:
- .env.prod
restart: always
volumes:
profilarr_data:
name: profilarr_data