-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
66 lines (62 loc) · 1.58 KB
/
docker-compose.prod.yml
File metadata and controls
66 lines (62 loc) · 1.58 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
nginx:
container_name: reverse-image-dataset-generator-frontend-prod
image: reverse-image-dataset-generator-frontend-prod
build:
context: .
dockerfile: Dockerfile.prod
target: nginx
ports:
- "80:80"
depends_on:
app:
condition: service_started
networks:
- app-network
restart: unless-stopped
app:
container_name: reverse-image-dataset-generator-backend-prod
image: reverse-image-dataset-generator-backend-prod
build:
context: .
dockerfile: Dockerfile.prod
target: node
env_file:
- .env.production
expose:
- "5050"
networks:
- app-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5050/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Uncomment below to use local PostgreSQL instead of Supabase
# db:
# container_name: reverse-image-dataset-generator-db-prod
# image: postgres:16
# environment:
# POSTGRES_USER: ${DB_USER:-postgres}
# POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
# POSTGRES_DB: ${DB_NAME:-postgres}
# volumes:
# - postgres_data:/var/lib/postgresql/data
# ports:
# - "5432:5432" # Default PostgreSQL port
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -U postgres"]
# interval: 5s
# timeout: 5s
# retries: 5
# networks:
# - app-network
# Uncomment if using local PostgreSQL
# volumes:
# postgres_data:
networks:
app-network:
name: reverse-image-dataset-generator-prod
driver: bridge