forked from xr3ngine-archive/mozilla-hubs-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
117 lines (112 loc) · 2.87 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: '2.3'
services:
hubs:
build:
context: ../hubs
args: # not env because they are used in build time
- HOST="hubs.local"
- CORS_PROXY_HOST=hubs-proxy.local
- RETICULUM_SOCKET_SERVER="hubs.local"
- CORS_PROXY_SERVER=hubs-proxy.local:4000
- NON_CORS_PROXY_DOMAINS=hubs.local,dev.reticulum.io
- BASE_ASSETS_PATH=https://hubs.local:8080/
- RETICULUM_SERVER="hubs.local:4000"
- POSTGREST_SERVER=""
- ITA_SERVER=""
# - NGINX_HOST=hubs.local
# - NGINX_PORT=80
image: mozzila-hubs
restart: always
ports:
- '8080:443'
# network_mode: host
admin:
build:
context: ../hubs/admin
args: # not env because they are used in build time
- HOST="hubs.local"
- CORS_PROXY_HOST=hubs-proxy.local
- RETICULUM_SOCKET_SERVER="hubs.local"
- CORS_PROXY_SERVER=hubs-proxy.local:4000
- NON_CORS_PROXY_DOMAINS=hubs.local,dev.reticulum.io
- BASE_ASSETS_PATH=https://hubs.local:8989/
- RETICULUM_SERVER="hubs.local:4000"
- POSTGREST_SERVER=""
- ITA_SERVER=""
# - NGINX_HOST=hubs.local
# - NGINX_PORT=80
image: mozzila-hubs-admin
restart: always
ports:
- '8989:443'
spoke:
build: ../Spoke
image: spoke
restart: always
ports:
- '9090:433'
environment:
- HOST="hubs.local"
# network_mode: host
reticulum:
build: ../reticulum
image: mozzila-reticulum
restart: always
environment:
- DB_HOST=db
- MIX_ENV=dev
- HUBS_HOST=hubs
- HUBS_PORT=443
- ADMIN_HOST=hubs
- ADMIN_PORT=444
- SPOKE_HOST=spoke
- SPOKE_PORT=80
ports:
- '4000:4000'
depends_on:
- db
# network_mode: host
db:
image: postgres:alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ./postgres:/var/lib/postgresql/data
ports:
- 5432:5432
# network_mode: host
adminer:
image: adminer
#restart: always
ports:
- 8082:8080
depends_on:
- db
# network_mode: host
janus:
build: janus
image: janus
restart: always
# network_mode: host
# caddy:
# image: yukimochi/container-caddy
# restart: always
# network_mode: "host"
# volumes:
# - ./caddy/cert:/cert
# - ./caddy/conf:/etc/caddy
# - ./caddy/logs:/var/log/caddy
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.1
# Enables the web UI and tells Traefik to listen to docker
command: --api.insecure=true --providers.docker
ports:
# The HTTP port
- "80:80"
# The Web UI (enabled by --api.insecure=true)
- "8083:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock