generated from spknetwork/js-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
66 lines (60 loc) · 1.35 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.3"
services:
vsc-node: # name of the service
build: .
image: vsc-node # the image to use
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
env_file:
- .env
ports:
- 1337:1337
environment:
IPFS_HOST: http://ipfs:5001
MONGO_HOST: mongo:27017
volumes:
- node-modules-store:/home/github/app/node_modules
- ./data/vsc-node:/root/.vsc-node
- ./seed-backup.json:/root/.vsc-seed-backup.json
- ./.git/refs/heads/main:/root/git_commit
mongo:
container_name: mongo_vsc
image: mongo:4.4.18
restart: always
ports:
- 127.0.0.1:27021:27017
networks:
- vsc-node
volumes:
- ./data/vsc-db:/data/db
ipfs:
container_name: ipfs-vsc
image: ipfs/kubo:v0.18.1
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
volumes:
node-modules-store: {}
mongodb: {}
networks:
vsc-node:
driver: bridge