-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdev-stack.yml
101 lines (99 loc) · 2.06 KB
/
dev-stack.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
95
96
97
98
99
100
101
version: '3.7'
services:
rd:
image: redis:3.2
networks:
- hta_network
ports:
- "6379:6379"
deploy:
mode: replicated
replicas: 1
db:
image: postgres:9.6
networks:
- hta_network
deploy:
mode: replicated
replicas: 1
webconsole:
image: paullj1/webconsole:latest
networks:
- webconsole
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
ports:
- "8888:8888"
secrets:
- CLIENT_CRT
- CLIENT_KEY
- SERVER_CRT
volumes:
- type: bind
source: /var/run/docker.sock
target: /docker.sock
webconsole_proxy:
image: paullj1/socat_static:latest
networks:
- webconsole
ports:
- target: 2376
published: 2376
mode: host
secrets:
- CLIENT_CRT
- SERVER_PEM
deploy:
mode: global
volumes:
- type: bind
source: /var/run/docker.sock
target: /docker.sock
command: ["-d", "-d",
"openssl-listen:2376,fork,reuseaddr,cert=/run/secrets/SERVER_PEM,cafile=/run/secrets/CLIENT_CRT",
"unix-connect:/docker.sock"]
web:
image: paullj1/hackthearch:latest
environment:
- RAILS_ENV=production
- RACK_ENV=production
- CONSOLE_HOST=http://ubuntu.local:8888
- RAILS_SERVE_STATIC_FILES=enabled
- LANG=en_US.UTF-8
- PORT=3000
- DATABASE_URL=postgresql://postgres@db/postgres
- REDIS_URL=redis://rd:6379/
- HOST=localhost
- SECRET_KEY_BASE=NOTASECRET
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
# - type: bind
# source: ./
# target: /app
ports:
- "3000:3000"
networks:
- hta_network
deploy:
mode: replicated
replicas: 1
secrets:
REGISTRY_AUTH:
external: true
CLIENT_CRT:
external: true
CLIENT_KEY:
external: true
SERVER_PEM:
external: true
SERVER_CRT:
external: true
networks:
hta_network:
webconsole: