-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yaml
More file actions
81 lines (76 loc) · 1.94 KB
/
Copy pathcompose.yaml
File metadata and controls
81 lines (76 loc) · 1.94 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
services:
traefik:
image: traefik:v3
ports:
- "443:443"
volumes:
- ./traefik/:/etc/traefik/:ro
- letsencrypt_data:/letsencrypt
environment:
MARATHON_DOMAIN: ${MARATHON_DOMAIN}
MARATHON_ACME_EMAIL: ${MARATHON_ACME_EMAIL}
depends_on:
orchestrator:
condition: service_started
orchestrator:
image: marathon/orchestrator:latest
environment:
MARATHON_ANTHROPIC_API_KEY: ${MARATHON_ANTHROPIC_API_KEY}
MARATHON_POSTGRES_URL: postgresql://${POSTGRES_USER:-marathon}:${POSTGRES_PASSWORD:-marathon}@postgres:5432/${POSTGRES_DB:-marathon}
MARATHON_REDIS_URL: redis://redis:6379
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
etcd:
condition: service_healthy
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER:-marathon}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-marathon}
POSTGRES_DB: ${POSTGRES_DB:-marathon}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U marathon"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
etcd:
image: quay.io/coreos/etcd:v3.5.17
ports:
- "2379:2379"
- "2380:2380"
environment:
ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
volumes:
- etcd_data:/etcd-data
command:
- etcd
- --data-dir=/etcd-data
healthcheck:
test: ["CMD", "etcdctl", "endpoint", "health"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data:
redis_data:
etcd_data:
letsencrypt_data: