-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.55 KB
/
docker-compose.yml
File metadata and controls
65 lines (61 loc) · 1.55 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
services:
eos-postgresql:
image: postgres:17.5
container_name: eos-postgres
hostname: eos-postgres
restart: unless-stopped
shm_size: 256mb
environment:
POSTGRES_DB: postgres
POSTGRES_USER: ${EOS_POSTGRES_USER}
POSTGRES_PASSWORD: ${EOS_POSTGRES_PASSWORD}
ports:
- "5432:5432"
networks:
- eos_network
volumes:
- postgres_data:/var/lib/postgresql/data
eos-seaweedfs:
image: chrislusf/seaweedfs
container_name: eos-seaweedfs
hostname: eos-seaweedfs
restart: unless-stopped
environment:
EOS_S3_ACCESS_KEY_ID: ${EOS_S3_ACCESS_KEY_ID}
EOS_S3_SECRET_ACCESS_KEY: ${EOS_S3_SECRET_ACCESS_KEY}
entrypoint: /bin/sh
command:
- -c
- |
cat > /tmp/s3.json <<CONF
{"identities":[{"name":"eos","credentials":[{"accessKey":"$$EOS_S3_ACCESS_KEY_ID","secretKey":"$$EOS_S3_SECRET_ACCESS_KEY"}],"actions":["Admin","Read","List","Tagging","Write"]}]}
CONF
exec weed server -s3 -s3.config=/tmp/s3.json -dir=/data
ports:
- "8333:8333"
networks:
- eos_network
volumes:
- seaweedfs_data:/data
filestash:
image: machines/filestash:latest
container_name: filestash
hostname: filestash
restart: unless-stopped
ports:
- "8334:8334"
networks:
- eos_network
volumes:
- filestash_data:/app/data/state/
networks:
eos_network:
name: eos_network
driver: bridge
volumes:
postgres_data:
driver: local
seaweedfs_data:
driver: local
filestash_data:
driver: local