-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.base.yml
66 lines (58 loc) · 1.95 KB
/
docker-compose.base.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
version: '3.4'
x-variables: &ciddag-variables
CIDDAG_HTTP_PORT: "4588"
CIDDAG_IPFS_API_SERVER: "ipfs0:5001"
CIDDAG_IPFS_KEYSTORE_PATH: "/data/ipfs/keystore"
RECAPTCHA_SECRETKEY: "${RECAPTCHA_SECRETKEY}"
RECAPTCHA_SITEKEY: "${RECAPTCHA_SITEKEY}"
CIDDAG_WL_PROFILEIDS: "${CIDDAG_WL_PROFILEIDS}"
CIDDAG_CURATED_PROFILEIDS: "${CIDDAG_CURATED_PROFILEIDS}"
CIDDAG_IPNS_FEDERATIONMEMBERS: "${CIDDAG_IPNS_FEDERATIONMEMBERS}"
CIDDAG_TLS_HOSTNAME: "${CIDDAG_TLS_HOSTNAME}"
CIDDAG_TLS_DATADIR: "/data/tls"
services:
ipfs0:
container_name: ipfs0
image: ipfs/go-ipfs:v0.8.0
ports:
- "7766:4001" # ipfs swarm - expose if needed/wanted
# - "7767:5001" # ipfs api - expose if needed/wanted
# - "7768:8080" # ipfs gateway - expose if needed/wanted
volumes:
- ./compose/ipfs0:/data/ipfs
- ./ipfs_add_files:/export
entrypoint: /sbin/tini
command: "-- /usr/local/bin/start_ipfs daemon --enable-pubsub-experiment --enable-namesys-pubsub --migrate=true"
ipfs2:
container_name: ipfs2
image: ipfs/go-ipfs:v0.8.0
ports:
- "7866:4001" # ipfs swarm - expose if needed/wanted
- "7867:5001" # ipfs api - expose if needed/wanted
- "7868:8080" # ipfs gateway - expose if needed/wanted
volumes:
- ./compose/ipfs2:/data/ipfs
- ./ipfs2_add_files:/export
entrypoint: /sbin/tini
command: "-- /usr/local/bin/start_ipfs daemon --enable-pubsub-experiment --enable-namesys-pubsub --migrate=true"
ciddag:
build:
context: .
dockerfile: Dockerfile
environment:
<<: *ciddag-variables
volumes:
- ./compose/ipfs0:/data/ipfs
- ./compose/tlsdata:/data/tls
- ./src:/go/src/IPFS-Social-Graph/src
- ./web:/go/src/IPFS-Social-Graph/web
- ./bin:/go/src/IPFS-Social-Graph/bin
ports:
- "4588:4588"
- "80:80"
- "4443:4443"
wait_for_deps:
image: dadarek/wait-for-dependencies
depends_on:
- ipfs0
command: ipfs0:5001