-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (29 loc) · 840 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
31 lines (29 loc) · 840 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
services:
postgres:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-github_symphony}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-github_symphony}"]
interval: 5s
timeout: 5s
retries: 20
symphony-worker-image:
image: ${SYMPHONY_IMAGE:-github-symphony-worker:local}
build:
context: .
dockerfile: docker/worker.Dockerfile
command:
- /bin/sh
- -lc
- 'echo "Worker image built: ${SYMPHONY_IMAGE:-github-symphony-worker:local}"'
restart: "no"
volumes:
postgres-data: