forked from ViniRossiniCosta/ICMS_API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 851 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 851 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
version: '3.8'
services:
icms-api:
build:
context: .
dockerfile: dockerfile
container_name: icms-api
ports:
- "5004:5004"
environment:
- FLASK_PORT=5004
- SUPABASE_URL=${SUPABASE_URL:-https://cbhaiuvfyruywmpysxyz.supabase.co}
- SUPABASE_KEY=${SUPABASE_KEY:-sb_publishable_UkNu0VLTCm06uDfJmGiYvg_xW579LAw}
- PYTHONUNBUFFERED=1
- TZ=America/Sao_Paulo
env_file:
.env
volumes:
# Volume para desenvolvimento (remova em produção)
- .:/app
# Volume para logs
- ./logs:/app/logs
restart: unless-stopped
networks:
- icms-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5004/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
icms-network:
driver: bridge