Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
118 lines (107 loc) · 2.66 KB
/
Copy pathdocker-compose.yml
File metadata and controls
118 lines (107 loc) · 2.66 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: chatbotx
x-network: &network
networks:
- chatbotx-network
x-rustfs-environment: &rustfs-environment
RUSTFS_ACCESS_KEY: ${RUSTFS_ACCESS_KEY:-chatbotx}
RUSTFS_SECRET_KEY: ${RUSTFS_SECRET_KEY:-secretkey}
RUSTFS_API_CORS_ALLOW_ORIGIN: ${RUSTFS_API_CORS_ALLOW_ORIGIN:-*}
services:
postgres:
<<: *network
image: timescale/timescaledb-ha:pg18-all
ports:
- "5432:5432"
volumes:
- db-data:/home/postgres/pgdata
command: ["postgres", "-c", "log_statement=${POSTGRES_LOG_STATEMENT:-none}"]
environment:
- POSTGRES_DB=${POSTGRES_DB:-chatbotx}
- POSTGRES_USER=${POSTGRES_USER:-chatbotx}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-secretkey}
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
adminer:
<<: *network
image: adminer:latest
depends_on:
postgres:
condition: service_healthy
ports:
- "${ADMINER_PORT:-8080}:8080"
mailhog:
<<: *network
image: mailhog/mailhog
ports:
- 1025:1025
- 8025:8025
filesystem:
<<: *network
image: rustfs/rustfs:latest
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
<<: *rustfs-environment
volumes:
- filesystem-data:/data
healthcheck:
test: [
"CMD",
"sh",
"-c",
"curl -f http://127.0.0.1:9000/health && curl -f
http://127.0.0.1:9001/rustfs/console/health",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
filesystem-init:
<<: *network
image: rustfs/rc:latest
depends_on:
filesystem:
condition: service_healthy
environment:
<<: *rustfs-environment
entrypoint: >
/bin/sh -c "rc alias set local http://filesystem:9000
$${RUSTFS_ACCESS_KEY} $${RUSTFS_SECRET_KEY}; rc mb local/chatbotx
--ignore-existing; touch /tmp/empty && rc cp /tmp/empty
local/chatbotx/public/; rc anonymous set public local/chatbotx/public;"
redis:
<<: *network
image: redis:8-alpine
ports:
- "6379:6379"
volumes:
- cache-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
redis-ui:
<<: *network
image: redis/redisinsight:latest
depends_on:
redis:
condition: service_healthy
ports:
- "5540:5540"
volumes:
- redis-ui-data:/data
networks:
chatbotx-network:
driver: bridge
volumes:
db-data:
filesystem-data:
cache-data:
redis-ui-data: