-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 839 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 839 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
32
33
34
35
36
37
services:
# Application Flask
flashnotify:
build: .
ports:
- "5001:5000"
environment:
- DATABASE_URL=postgresql://flashnotify:flashnotify_password@postgres:5432/flashnotify
- SESSION_SECRET=production-secret-key-change-me
- FLASK_ENV=production
depends_on:
- postgres
- redis
restart: unless-stopped
# Redis pour les files d'attente
redis:
image: redis:7-alpine
ports:
- "6380:6379"
restart: unless-stopped
# PostgreSQL pour production
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_DB=flashnotify
- POSTGRES_USER=flashnotify
- POSTGRES_PASSWORD=flashnotify_password
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5433:5432"
restart: unless-stopped
volumes:
postgres_data: