-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
40 lines (37 loc) · 890 Bytes
/
compose.yaml
File metadata and controls
40 lines (37 loc) · 890 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
version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: solarwatch-postgres
environment:
POSTGRES_DB: solarwatch
POSTGRES_USER: postgres
POSTGRES_PASSWORD: Pds56ghj
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
app:
build:
context: ./backend
dockerfile: Dockerfile
container_name: solarwatch-app
ports:
- "8080:8080"
environment:
- DB_HOST=postgres
- DB_USER=postgres
- DB_PASSWORD=Pds56ghj
- GEO_API_KEY=${GEO_API_KEY:-}
- JWT_SECRET=${JWT_SECRET:-default-jwt-secret-change-me}
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
volumes:
postgres_data: