-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
94 lines (88 loc) · 2.09 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3.8"
services:
vsc-node: # name of the service
image: vaultec/vsc-node:main
pull_policy: always
container_name: vsc-node # what to label the container for docker ps
restart: always # restart if failed, until we stop it ourselves
#external_links:
#- mongo
depends_on:
- ipfs
- mongo
networks:
- vsc-node
ports:
- 1337:1337
environment:
IPFS_HOST: http://ipfs:5001
MONGO_HOST: mongo:27017
env_file:
- .env
volumes:
- ./data/vsc-node:/root/.vsc-node
- ./seed-backup.json:/root/.vsc-seed-backup.json
- ./.git/refs/heads/main:/root/git_commit
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
labels:
- "com.centurylinklabs.watchtower.enable=${AUTO_UPDATE:-true}"
mongo:
container_name: mongo_vsc
image: mongo:4.4.18
pull_policy: always
restart: always
ports:
- 127.0.0.1:27021:27017
networks:
- vsc-node
volumes:
- ./data/vsc-db:/data/db
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "5m"
labels:
- "com.centurylinklabs.watchtower.enable=${AUTO_UPDATE:-true}"
ipfs:
container_name: ipfs-vsc
image: ipfs/kubo:v0.18.1
pull_policy: always
restart: always
command:
- daemon
- --enable-pubsub-experiment
- --init-profile
- server
networks:
- vsc-node
ports:
- "4001:4001"
- "127.0.0.1:5101:5001"
environment:
IPFS_PATH: /etc/ipfs
volumes:
- ./data/ipfs:/etc/ipfs
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "5m"
labels:
- "com.centurylinklabs.watchtower.enable=${AUTO_UPDATE:-true}"
# Watchtower automatically updates the containers
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --label-enable --interval 3600 --cleanup
volumes:
node-modules-store: {}
mongodb: {}
networks:
vsc-node:
driver: bridge