-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 1008 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 1008 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
38
39
40
41
42
43
version: '3.8'
services:
# PostgreSQL Database
postgres:
image: postgres:16-alpine
container_name: cleanlift-db
environment:
POSTGRES_USER: cleanlift
POSTGRES_PASSWORD: cleanlift123
POSTGRES_DB: cleanlift
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cleanlift -d cleanlift"]
interval: 10s
timeout: 5s
retries: 5
# CleanLift API (build from source)
api:
build:
context: .
dockerfile: Dockerfile
container_name: cleanlift-api
depends_on:
postgres:
condition: service_healthy
environment:
SPRING_PROFILES_ACTIVE: prod
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: cleanlift
DB_USERNAME: cleanlift
DB_PASSWORD: cleanlift123
JWT_SECRET: ${JWT_SECRET:-your-production-256-bit-secret-key-change-this-in-production}
ports:
- "8080:8080"
volumes:
postgres_data: