-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (83 loc) · 2.92 KB
/
Copy pathdocker-compose.yml
File metadata and controls
87 lines (83 loc) · 2.92 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# NOTE: for development use only, do not run this compose in production!
# ports are not exposed, instead dynamic orb domains are used
services:
# port 5432
postgres:
# NOTE lock this value to the specific version you use in production
# https://hub.docker.com/_/postgres/
image: postgres:18
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- ${CI:+5432}:5432
volumes:
- app_postgres_data:/var/lib/postgresql/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
# Use a 24-hour interval trick to disable ongoing background healthchecks after the container reaches a healthy state.
# This reduces local CPU overhead from pinging the container repeatedly during development.
interval: 24h
# Rapid checks every second during initial boot
start_interval: 1s
start_period: 10s
timeout: 5s
retries: 3
# port 6379
redis:
# NOTE you'll probably need to drop this value for your production environment which will lag edge releases
image: redis:8
restart: unless-stopped
ports:
- ${CI:+6379}:6379
healthcheck:
test: ["CMD-SHELL", "redis-cli ping"]
# Use a 24-hour interval trick to disable ongoing background healthchecks after the container reaches a healthy state.
# This reduces local CPU overhead from pinging the container repeatedly during development.
interval: 24h
# Rapid checks every second during initial boot
start_interval: 1s
start_period: 5s
timeout: 3s
retries: 3
# SMTP sinkhole for easily viewing email in development
# web ui: 8025
# smtp: 1025
mailpit:
image: axllent/mailpit
restart: unless-stopped
ports:
- ${CI:+1025}:1025
- ${CI:+8025}:8025
volumes:
- mailpit_data:/data
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
# port 8080
# IP geolocation JSON API (MaxMind GeoLite2)
# https://github.com/observabilitystack/geoip-api
geoip:
image: ghcr.io/observabilitystack/geoip-api:latest
restart: unless-stopped
ports:
- ${CI:+8080}:8080
healthcheck:
# Image ships with curl and /actuator/health
test: ["CMD-SHELL", "curl -f http://localhost:8080/actuator/health"]
# Use a 24-hour interval trick to disable ongoing background healthchecks after the container reaches a healthy state.
# This reduces local CPU overhead from pinging the container repeatedly during development.
interval: 24h
# Rapid checks every second during initial boot
start_interval: 1s
start_period: 15s
timeout: 5s
retries: 5
volumes:
mailpit_data:
# NOTE redis data is not persisted, assumed to be ephemeral
app_postgres_data: