-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (60 loc) · 1.97 KB
/
docker-compose.yml
File metadata and controls
66 lines (60 loc) · 1.97 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
version: '3.8'
services:
ipfs:
container_name: ipfs
image: ipfs/kubo:v0.25.0 # Use a specific version
ports:
- "4001:4001" # ipfs swarm
- "5001:5001" # ipfs api
- "8080:8080" # ipfs gateway
volumes:
- ipfs_data:/data/ipfs
networks:
- gitopia-network
cluster:
container_name: ipfs-cluster
image: ipfs/ipfs-cluster:v1.1.0 # Use a specific version
depends_on:
- ipfs
environment:
# Configuration via environment variables. See https://ipfscluster.io/documentation/reference/configuration/
- CLUSTER_PEERNAME=${CLUSTER_PEERNAME:-cluster0}
- CLUSTER_SECRET=${CLUSTER_SECRET:?err_secret_not_set}
- CLUSTER_IPFSHTTP_NODEMULTIADDRESS=/dns4/ipfs/tcp/5001
- CLUSTER_CRDT_TRUSTEDPEERS=${CLUSTER_TRUSTED_PEERS:-*}
- CLUSTER_RESTAPI_HTTPLISTENMULTIADDRESS=/ip4/0.0.0.0/tcp/9094
ports:
- "9094:9094" # Cluster API
- "9096:9096" # Cluster swarm
volumes:
- cluster_data:/data/ipfs-cluster
networks:
- gitopia-network
gitopia-storage:
container_name: gitopia-storage
image: gitopia/gitopia-storage:latest
depends_on:
- cluster
ports:
- "5002:5000"
environment:
# This entrypoint script will import the key on startup
- GITOPIA_OPERATOR_MNEMONIC=${GITOPIA_OPERATOR_MNEMONIC:?err_mnemonic_not_set}
volumes:
# Map host directories for persistent git data.
# To use an external disk, change the host path. E.g., /mnt/my-disk/repos:/var/repos
- ./data/repos:/var/repos
- ./data/attachments:/var/attachments
- ./data/lfs-objects:/var/lfs-objects
# Optional: Mount a custom config file
# - ./my_config.toml:/etc/gitopia-storage/config.toml
networks:
- gitopia-network
# The new entrypoint handles key import, then starts the service
entrypoint: supervisord -c /etc/supervisord.conf
volumes:
ipfs_data:
cluster_data:
networks:
gitopia-network:
name: gitopia-network