-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.54 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
# Pin the compose project name so dev worktrees never collide with the
# production stack at /opt/gc. Without this, `docker compose` derives the
# project name from the worktree basename (`gc`), which matched the prod
# project on 2026-05-24 and recreated `gc-db-1` against the dev volume.
name: gc-dev
services:
db:
image: apache/age:release_PG16_1.6.0
environment:
POSTGRES_DB: ground_control
POSTGRES_USER: ${GC_DATABASE_USER:-gc}
POSTGRES_PASSWORD: ${GC_DATABASE_PASSWORD:?Set GC_DATABASE_PASSWORD in .env}
ports:
- "127.0.0.1:5432:5432"
volumes:
- gc-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gc -d ground_control"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7
ports:
- "127.0.0.1:6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
backend:
build:
context: .
dockerfile: backend/Dockerfile
environment:
GC_DATABASE_URL: jdbc:postgresql://db:5432/ground_control
GC_DATABASE_USER: ${GC_DATABASE_USER:-gc}
GC_DATABASE_PASSWORD: ${GC_DATABASE_PASSWORD:?Set GC_DATABASE_PASSWORD in .env}
GC_REDIS_URL: redis://redis:6379
GC_SERVER_PORT: "8000"
GH_TOKEN: ${GITHUB_PERSONAL_ACCESS_TOKEN:-}
SPRING_PROFILES_ACTIVE: dev
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
volumes:
gc-postgres-data: