-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-stack.yml
62 lines (56 loc) · 1.57 KB
/
docker-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
version: '3.8'
services:
web_proxy:
image: nginx:1.19-alpine
volumes:
- ./nginx:/etc/nginx:ro
- 'storage:/media/data'
networks:
stack:
proxy:
deploy:
labels:
- 'traefik.enable=true'
- 'traefik.http.services.${SATNAME}.loadbalancer.server.port=80'
- 'traefik.http.routers.${SATNAME}.rule=Host(`${SATNAME}.${DOMAIN}`)'
- 'traefik.http.routers.${SATNAME}.entrypoints=websecure'
- 'traefik.http.routers.${SATNAME}.tls.certresolver=le'
- 'traefik.http.routers.${SATNAME}.middlewares=corsHeaders'
- 'traefik.http.middlewares.corsHeaders.headers.accessControlAllowMethods=GET,OPTIONS,POST'
- 'traefik.http.middlewares.corsHeaders.headers.accessControlAllowOrigin=*'
- 'traefik.http.middlewares.corsHeaders.headers.accessControlAllowHeaders=*'
app_server:
image: 'satellitebaas/core-server'
environment:
- APIKEY=${APIKEY}
- SATNAME=${SATNAME}
volumes:
- 'storage:/media/data'
networks:
stack:
backend:
aliases:
- app_${SATNAME}
alpha:
image: dgraph/dgraph:latest
volumes:
- dgraph_data:/dgraph
networks:
stack:
command: dgraph alpha --my=alpha:7080 --zero=zero:5080 --graphql_extensions=false --lru_mb=1024 --whitelist 0.0.0.0/0
zero:
image: dgraph/dgraph:latest
volumes:
- dgraph_data:/dgraph
networks:
stack:
command: dgraph zero --my=zero:5080
volumes:
dgraph_data:
storage:
networks:
stack:
backend:
external: true
proxy:
external: true