-
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) · 1.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (34 loc) · 1.05 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
services:
postgres:
image: postgres:18-alpine
container_name: conjunction-db
environment:
POSTGRES_DB: ${POSTGRES_DB:-conjunction_db}
POSTGRES_USER: ${POSTGRES_USER:-conjunction_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-conjunction_user} -d ${POSTGRES_DB:-conjunction_db}" ]
interval: 10s
timeout: 5s
retries: 5
app:
image: ghcr.io/salad109/simpleton:latest
container_name: simpleton
depends_on:
postgres:
condition: service_healthy
environment:
POSTGRES_HOST: postgres
POSTGRES_DB: ${POSTGRES_DB:-conjunction_db}
POSTGRES_USER: ${POSTGRES_USER:-conjunction_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
SPACETRACK_USERNAME: ${SPACETRACK_USERNAME}
SPACETRACK_PASSWORD: ${SPACETRACK_PASSWORD}
ports:
- "${APP_PORT:-8080}:8080"
volumes:
postgres_data: