-
Notifications
You must be signed in to change notification settings - Fork 157
/
docker-compose.halfstack-2303.yml
71 lines (66 loc) · 1.74 KB
/
docker-compose.halfstack-2303.yml
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
version: "2.4"
services:
backendai-half-db:
image: postgres:15.1-alpine
restart: unless-stopped
command: postgres -c 'max_connections=256'
networks:
- half
ports:
- "8100:5432"
environment:
- POSTGRES_PASSWORD=develove
- POSTGRES_DB=backend
volumes:
- "./volumes/${DATADIR_PREFIX:-.}/postgres-data:/var/lib/postgresql/data:rw"
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 5s
timeout: 3s
retries: 10
backendai-half-redis:
image: redis:7.0.5-alpine
restart: unless-stopped
networks:
- half
ports:
- "8110:6379"
volumes:
- "./volumes/${DATADIR_PREFIX:-.}/redis-data:/data:rw"
command: >
redis-server
--appendonly yes
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 5s
timeout: 3s
retries: 10
backendai-half-etcd:
image: quay.io/coreos/etcd:v3.5.6
restart: unless-stopped
volumes:
- "./volumes/${DATADIR_PREFIX:-.}/etcd-data:/etcd-data:rw"
networks:
- half
ports:
- "8120:2379"
command: >
/usr/local/bin/etcd
--name backendai-etcd
--data-dir /etcd-data
--listen-client-urls http://0.0.0.0:2379
--advertise-client-urls http://0.0.0.0:2379
--listen-peer-urls http://0.0.0.0:2380
--initial-advertise-peer-urls http://0.0.0.0:2380
--initial-cluster backendai-etcd=http://0.0.0.0:2380
--initial-cluster-token backendai-etcd-token
--initial-cluster-state new
--enable-v2=true
--auto-compaction-retention 1
healthcheck:
test: ["CMD", "etcdctl", "endpoint", "health"]
interval: 5s
timeout: 3s
retries: 10
networks:
half: