-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.3 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.3 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
services:
db:
image: postgres:17-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: textbin_dev
# The application reaches this cluster through the Unix socket mounted below
# instead of a TCP port, so nothing is published to the host network. The
# image already creates its socket in /var/run/postgresql, and an empty
# listen_addresses keeps the container from listening on TCP at all.
command: ["postgres", "-c", "listen_addresses="]
volumes:
- postgres-data:/var/lib/postgresql/data
- ./tmp/postgres-socket:/var/run/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d textbin_dev"]
interval: 5s
timeout: 5s
retries: 10
networks:
- textbin
object-storage:
image: chrislusf/seaweedfs:4.40
command:
- server
- -s3
- -dir=/data
- -ip=object-storage
- -ip.bind=0.0.0.0
- -master.volumeSizeLimitMB=1024
- -s3.config=/etc/seaweedfs/s3.json
ports:
- "8333:8333"
volumes:
- object-storage-data:/data
- ./config/seaweedfs_s3.json:/etc/seaweedfs/s3.json:ro
restart: unless-stopped
networks:
- textbin
volumes:
postgres-data:
object-storage-data:
networks:
textbin:
driver: bridge