-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (67 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
73 lines (67 loc) · 1.52 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
version: "3.9"
services:
app:
build: .
ports:
- "8000:8000"
environment:
LEG_REDIS_URL: redis://redis:6379/0
LEG_VAULT_URL: http://vault:8200
LEG_VAULT_TOKEN: dev-root-token
LEG_ENVIRONMENT: development
LEG_DEBUG: "true"
LEG_STATSD_HOST: statsd
LEG_STATSD_PORT: "8125"
LEG_DATABASE_URL: postgresql+asyncpg://leg:leg@postgres:5432/leg
depends_on:
redis:
condition: service_healthy
vault:
condition: service_healthy
postgres:
condition: service_healthy
redis:
image: redis:7-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: leg
POSTGRES_PASSWORD: leg
POSTGRES_DB: leg
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U leg -d leg"]
interval: 5s
timeout: 3s
retries: 10
vault:
image: hashicorp/vault:1.16
ports:
- "8200:8200"
environment:
VAULT_DEV_ROOT_TOKEN_ID: dev-root-token
VAULT_DEV_LISTEN_ADDRESS: "0.0.0.0:8200"
cap_add:
- IPC_LOCK
healthcheck:
test: ["CMD", "vault", "status"]
interval: 5s
timeout: 3s
retries: 10
statsd:
image: graphiteapp/graphite-statsd:latest
ports:
- "8125:8125/udp"
- "8080:80"
volumes:
postgres_data: