-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (42 loc) · 1.4 KB
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (42 loc) · 1.4 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
services:
api:
build:
context: .
dockerfile: apps/api/Dockerfile
restart: unless-stopped
environment:
DATABASE_URL: host=postgres user=prdashboard password=prdashboard dbname=prdashboard port=5432 sslmode=disable
WEB_ORIGIN: ${WEB_ORIGIN:-http://localhost:${PORT:-8080}}
PORT: ${PORT:-8080}
GITHUB_REDIRECT_URL: ${GITHUB_REDIRECT_URL:-}
GITHUB_APP_SLUG: ${GITHUB_APP_SLUG:-}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID:-}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET:-}
TOKEN_ENCRYPTION_KEY: ${TOKEN_ENCRYPTION_KEY:-}
NOTIFY_ALLOW_PRIVATE_HOSTS: ${NOTIFY_ALLOW_PRIVATE_HOSTS:-}
DATABASE_MAX_OPEN_CONNS: ${DATABASE_MAX_OPEN_CONNS:-}
ports: ["127.0.0.1:${PORT:-8080}:${PORT:-8080}"]
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:${PORT:-8080}/health >/dev/null || exit 1"]
interval: 10s
timeout: 3s
retries: 5
start_period: 10s
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: prdashboard
POSTGRES_USER: prdashboard
POSTGRES_PASSWORD: prdashboard
ports: ["127.0.0.1:5432:5432"]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U prdashboard -d prdashboard"]
interval: 5s
timeout: 3s
retries: 10
volumes: ["pgdata:/var/lib/postgresql/data"]
volumes:
pgdata: