-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-stack.dev.yml
91 lines (86 loc) · 2.22 KB
/
docker-stack.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "3.7"
services:
ipfs-node:
container_name: "stellot-ipfs-node-dev"
image: ipfs/go-ipfs
networks:
- stellot-overlay
volumes: # https://github.com/ipfs/go-ipfs#running-ipfs-inside-docker
- $DOCKER_VOLUMES/stellot-ipfs-dev/data:/data/ipfs
- $DOCKER_VOLUMES/stellot-ipfs-dev/staging:/export
ports: # https://github.com/ipfs/go-ipfs/blob/master/Dockerfile#L74
- $IPFS_SWARM_PORT:4001
- $IPFS_WEB_GATEWAY:8080
- $IPFS_SWARM_WEBSOCKET:8081
deploy:
placement:
constraints:
- "node.hostname==swarm-do-1"
mongo:
container_name: "stellot-tds-mongodb-dev"
image: mongo:latest
restart: "unless-stopped"
networks:
- stellot-overlay
volumes:
- $DOCKER_VOLUMES/stellot-tds-dev:/data/db
deploy:
placement:
constraints:
- "node.hostname==swarm-do-1"
tds:
container_name: "stellot-tds-dev"
image: stasbar/tds
env_file: ./tds/.env
command: npm run start:dev
ports:
- $TDS_PORT:8080
restart: "unless-stopped"
networks:
- stellot-overlay
environment:
- KEYBASE_AUTH_SERVER_URL=http://keybase-auth:$KEYBASE_AS_PORT
- EMAILS_AUTH_SERVER_URL=http://emails-auth:$EMAILS_AS_PORT
- IPFS_NODE_URL=http://ipfs-node:5001
links:
- mongo
- keybase-auth
- emails-auth
- ipfs-node
depends_on:
- mongo
- keybase-auth
- emails-auth
- ipfs-node
deploy:
placement:
constraints:
- "node.platform.arch==armv7l"
keybase-auth:
container_name: "stellot-keybase-auth-dev"
image: stasbar/keybase-auth
env_file: ./keybase-auth/.env
command: npm run start:dev
networks:
- stellot-overlay
ports:
- $KEYBASE_AS_PORT:8080
restart: "unless-stopped"
emails-auth:
container_name: "stellot-emails-auth-dev"
image: stasbar/emails-auth
env_file: ./emails-auth/.env
command: npm run start:dev
networks:
- stellot-overlay
ports:
- $EMAILS_AS_PORT:8080
restart: "unless-stopped"
deploy:
placement:
constraints:
- "node.platform.arch==armv7l"
networks:
stellot-overlay:
external: true
name: stellot-overlay