generated from spknetwork/js-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.dev.yml
68 lines (63 loc) · 1.42 KB
/
docker-compose.dev.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
version: "3.3"
services:
vsc-node: # name of the service
build:
context: .
dockerfile: Dockerfile.dev
image: vsc-node # the image to use
container_name: vsc-node_dev # 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:
- 1338:1337
environment:
IPFS_HOST: http://ipfs:5201
MONGO_HOST: mongo:27017
volumes:
- ./data/vsc-node:/root/.vsc-node
- ./seed-backup.json:/root/.vsc-seed-backup.json
- ./.git/refs/heads/main:/root/git_commit
- ./src:/home/github/app/src
- ./dist:/home/github/app/dist
mongo:
container_name: mongo_vsc_dev
image: mongo:4.4.18
restart: always
ports:
- 127.0.0.1:27022:27017
networks:
- vsc-node
volumes:
- ./data/vsc-db:/data/db
ipfs:
container_name: ipfs-vsc_dev
image: ipfs/kubo:v0.18.1
restart: always
command:
- daemon
- --enable-pubsub-experiment
- --init-profile
- server
networks:
- vsc-node
ports:
- "4002:4002"
- "127.0.0.1:5201:5201"
environment:
IPFS_PATH: /etc/ipfs
volumes:
- ./data/ipfs:/etc/ipfs
volumes:
node-modules-store: {}
mongodb: {}
networks:
vsc-node:
driver: bridge