Drop nginx

This commit is contained in:
decentral1se 2021-06-13 12:09:05 +02:00
parent ccc7e8dfdd
commit 4244bffdb3
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 10 additions and 28 deletions

View File

@ -2,27 +2,6 @@
version: "3.8"
services:
web:
image: nginx:1.21.0
environment:
- STACK_NAME=${STACK_NAME}
- DOMAIN=${DOMAIN}
configs:
- source: nginx_conf
target: /etc/nginx/nginx.conf
networks:
- proxy
- internal
deploy:
update_config:
failure_action: rollback
labels:
- "traefik.enable=true"
- "traefik.http.services.kcp.loadbalancer.server.port=80"
- "traefik.http.routers.kcp.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.kcp.entrypoints=web-secure"
- "traefik.http.routers.kcp.tls.certresolver=production"
app:
image: "decentral1se/keycloak-collective-portal:latest"
environment:
@ -35,12 +14,21 @@ services:
- app_secret_key
- keycloak_client_secret
networks:
- internal
- proxy
configs:
- source: entrypoint_sh
target: /usr/local/bin/entrypoint.sh
mode: 0555
entrypoint: /usr/local/bin/entrypoint.sh
deploy:
update_config:
failure_action: rollback
labels:
- "traefik.enable=true"
- "traefik.http.services.kcp.loadbalancer.server.port=8000"
- "traefik.http.routers.kcp.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.kcp.entrypoints=web-secure"
- "traefik.http.routers.kcp.tls.certresolver=production"
command: |
uvicorn
--host 0.0.0.0
@ -51,14 +39,8 @@ services:
networks:
proxy:
external: true
internal:
internal: true
configs:
nginx_conf:
name: ${STACK_NAME}_nginx_conf_${NGINX_CONF_VERSION}
file: nginx.conf.tmpl
template_driver: golang
entrypoint_sh:
name: ${STACK_NAME}_entrypoint_conf_${ENTRYPOINT_CONF_VERSION}
file: entrypoint.sh.tmpl