-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
44 lines (43 loc) · 1.41 KB
/
docker-compose.yaml
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
version: '3.8'
services:
app:
image: ghcr.io/indy-center/controller-tools:${IMAGE_TAG}
networks:
- web
secrets:
- controller-tools-database-url
- vatsim-connect-callback-url
- vatsim-connect-client-secret
- vatsim-connect-client-id
- vatsim-connect-url
entrypoint: >
sh -c "
export DATABASE_URL=$$(cat /run/secrets/controller-tools-database-url) &&
export CONNECT_CLIENT_ID=$$(cat /run/secrets/vatsim-connect-client-id) &&
export CONNECT_CLIENT_SECRET=$$(cat /run/secrets/vatsim-connect-client-secret) &&
export CONNECT_BASE_URL=$$(cat /run/secrets/vatsim-connect-url) &&
export CONNECT_CALLBACK_URL=$$(cat /run/secrets/vatsim-connect-callback-url) &&
node build"
deploy:
update_config:
order: start-first
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.${APP_NAME}.rule=Host(`${DOMAIN}`)'
- 'traefik.http.routers.${APP_NAME}.entrypoints=websecure'
- 'traefik.http.services.${APP_NAME}.loadbalancer.server.port=${APP_PORT}'
- 'traefik.http.routers.${APP_NAME}.tls.certresolver=myresolver'
networks:
web:
external: true
secrets:
controller-tools-database-url:
external: true
vatsim-connect-callback-url:
external: true
vatsim-connect-client-secret:
external: true
vatsim-connect-client-id:
external: true
vatsim-connect-url:
external: true