-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
71 lines (64 loc) · 2.16 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
version: '3.8'
services:
traefik-test:
image: 'traefik:latest'
command:
- '--api.insecure=true'
- '--providers.docker=true'
- '--providers.docker.exposedbydefault=false'
- '--providers.docker.network=proxy'
- '--entrypoints.web.address=:80'
- '--entrypoints.web.http.redirections.entrypoint.to=websecure'
- '--entrypoints.web.http.redirections.entrypoint.scheme=https'
- '--entrypoints.websecure.address=:443'
- '--certificatesresolvers.le.acme.tlschallenge=true'
- '--certificatesresolvers.le.acme.storage=/letsencrypt/acme.json'
- '--certificatesresolvers.le.acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory'
ports:
- '80:80'
- '443:443'
- '8090:8080'
volumes:
- 'certs:/letsencrypt'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
test_proxy:
image: nginx:1.19-alpine
volumes:
- ./test-proxy/conf.d:/etc/nginx/conf.d:ro
ports:
- '3030:80'
web_proxy:
image: nginx:1.19-alpine
volumes:
- ./nginx:/etc/nginx:ro
- 'storage:/media/data'
labels:
- 'traefik.enable=true'
- '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:
build: ./server
environment:
# - APIKEY=${APIKEY}
- SATNAME=${SATNAME}
volumes:
- 'storage:/media/data'
alpha:
image: dgraph/dgraph:latest
volumes:
- dgraph_data:/dgraph
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
command: dgraph zero --my=zero:5080
volumes:
dgraph_data:
certs:
storage: