-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (73 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
80 lines (73 loc) · 1.58 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
services:
db:
image: pgvector/pgvector:pg17
container_name: db
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: quibble
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
networks:
- quibble_net
redis:
image: redis:8-alpine
container_name: redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
rustfs:
image: rustfs/rustfs:latest
container_name: rustfs
security_opt:
- "no-new-privileges:true"
restart: unless-stopped
ports:
- "9000:9000"
- "9001:9001"
volumes:
- rustfs_data:/data
environment:
RUSTFS_VOLUMES: "/data/rustfs{0..3}"
RUSTFS_CONSOLE_ENABLE: "true"
RUSTFS_ACCESS_KEY: "rustfsadmin"
RUSTFS_SECRET_KEY: "rustfsadmin"
healthcheck:
test: [ "CMD-SHELL", "curl -fs http://localhost:9000/health || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
networks:
- quibble_net
mc:
image: minio/mc
container_name: mc
depends_on:
rustfs:
condition: service_healthy
env_file:
- ./backend/.env
volumes:
- ./scripts/init-rustfs.sh:/init-rustfs.sh:ro
entrypoint: [ "/bin/sh", "/init-rustfs.sh" ]
restart: "no"
networks:
- quibble_net
avatars:
image: goquibble/avatars
container_name: avatars
ports:
- "8001:80"
volumes:
db_data:
redis_data:
rustfs_data:
networks:
quibble_net:
name: quibble_net
driver: bridge