-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 935 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (33 loc) · 935 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
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: tmcapi
POSTGRES_PASSWORD: tmcapi
POSTGRES_DB: tmcapi
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tmcapi"]
interval: 5s
timeout: 5s
retries: 5
tmc-server:
build: .
restart: unless-stopped
ports:
- "${TMC_PORT:-8080}:8080"
environment:
TMC_ADDR: ":8080"
TMC_DATABASE_URL: "postgres://tmcapi:tmcapi@postgres/tmcapi?sslmode=disable"
TMC_API_KEYS: "${TMC_API_KEYS:-dev-api-key}"
TMC_ORG_NAME: "${TMC_ORG_NAME:-my-org}"
TMC_ORG_DISPLAY_NAME: "${TMC_ORG_DISPLAY_NAME:-My Org}"
TMC_USER_EMAIL: "${TMC_USER_EMAIL:-admin@example.com}"
TMC_USER_NAME: "${TMC_USER_NAME:-Admin}"
depends_on:
postgres:
condition: service_healthy
volumes:
pgdata: