-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (63 loc) · 1.76 KB
/
docker-compose.yml
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.9'
services:
gl_ipfs:
container_name: gl_ipfs
image: gildlab/ipfs-node:${GILDLAB_IPFS_NODE_CHANNEL}.ipfs
pull_policy: always
restart: always
logging:
driver: local
# dont expose anything in particular use nginx for that
# localhost and ephemeral ports only
ports:
# admin (definitely not world visible)
- "127.0.0.1::5001"
# p2p tcp/quic
# - "127.0.0.1::4001"
# - "127.0.0.1::4001/udp"
# expose directly here for now, can use nginx in future
# Disabling tcp due to router issues. 4001/udp is fine.
# https://github.com/ipfs/kubo/issues/3320#issuecomment-1321103079
# - "4001:4001"
- "4001:4001/udp"
# gateway
- "127.0.0.1::8080"
volumes:
- ${GILDLAB_IPFS_NODE_BASE_PATH}/volumes/ipfs/data/ipfs:/data/ipfs
- ${GILDLAB_IPFS_NODE_BASE_PATH}/volumes/ipfs/export:/export
env_file:
- ${GILDLAB_IPFS_NODE_BASE_PATH}/.env
gl_pin:
container_name: gl_pin
image: gildlab/ipfs-node:${GILDLAB_IPFS_NODE_CHANNEL}.pin
pull_policy: always
restart: always
logging:
driver: local
depends_on:
gl_ipfs:
condition: service_healthy
healthcheck:
test: nix-shell /main.sh false
interval: 30s
timeout: 60m
environment:
- IPFS_HOST=gl_ipfs
volumes:
- ${GILDLAB_IPFS_NODE_BASE_PATH}/volumes/pin:/pin
gl_nginx:
container_name: gl_nginx
image: gildlab/ipfs-node:${GILDLAB_IPFS_NODE_CHANNEL}.nginx
pull_policy: always
restart: always
logging:
driver: local
ports:
- "80:80"
# p2p for ipfs
# - "4001:4001"
volumes:
- ${GILDLAB_IPFS_NODE_BASE_PATH}/volumes/nginx:/nginx
depends_on:
gl_ipfs:
condition: service_healthy