-
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) · 925 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (34 loc) · 925 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
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: cesium
POSTGRES_PASSWORD: cesium
POSTGRES_DB: cesium_store
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cesium -d cesium_store"]
interval: 5s
timeout: 5s
retries: 5
api:
build: ./backend
environment:
DATABASE_URL: "host=db user=cesium password=cesium dbname=cesium_store port=5432 sslmode=disable"
JWT_SECRET: "${JWT_SECRET:-troca-me-em-producao}"
ADMIN_EMAIL: "${ADMIN_EMAIL:-admin@cesium.pt}"
ADMIN_PASSWORD: "${ADMIN_PASSWORD:-admin123}"
FRONTEND_URL: "${FRONTEND_URL:-http://localhost:5173}"
PORT: "8080"
ports:
- "8080:8080"
volumes:
- uploads:/app/uploads
depends_on:
db:
condition: service_healthy
restart: on-failure
volumes:
pgdata:
uploads: