-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
51 lines (50 loc) · 1.26 KB
/
compose.yaml
File metadata and controls
51 lines (50 loc) · 1.26 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
# For development purposes only, the production version is ran in Kubernetes (GKE)
name: "custom-modern-go-web-dev"
services:
runners-app:
build: ./app
ports:
- "8080:8080"
- "9000:9000"
# # Run Gin in release mode (production)
# environment:
# GIN_MODE: release
volumes:
- type: bind
source: ./app/runners.toml
target: /app/runners.toml
read_only: true
depends_on:
db:
condition: service_healthy
db:
image: postgres:14-alpine
restart: always
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: runners_db
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -d runners_db -U postgres"]
interval: 1s
timeout: 5s
retries: 10
volumes:
- runners-db-postgres-volume:/var/lib/postgresql/data
- ./dbscripts/ordered/:/docker-entrypoint-initdb.d/
adminer:
image: adminer
restart: always
ports:
- "8000:8080"
prometheus:
image: prom/prometheus:v2.48.0
ports:
- "9090:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command: --config.file=/etc/prometheus/prometheus.yml
volumes:
runners-db-postgres-volume:
driver: local