generated from coop-cloud/example
Drop nginx
This commit is contained in:
parent
ccc7e8dfdd
commit
4244bffdb3
38
compose.yml
38
compose.yml
|
@ -2,27 +2,6 @@
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
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:
|
app:
|
||||||
image: "decentral1se/keycloak-collective-portal:latest"
|
image: "decentral1se/keycloak-collective-portal:latest"
|
||||||
environment:
|
environment:
|
||||||
|
@ -35,12 +14,21 @@ services:
|
||||||
- app_secret_key
|
- app_secret_key
|
||||||
- keycloak_client_secret
|
- keycloak_client_secret
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- proxy
|
||||||
configs:
|
configs:
|
||||||
- source: entrypoint_sh
|
- source: entrypoint_sh
|
||||||
target: /usr/local/bin/entrypoint.sh
|
target: /usr/local/bin/entrypoint.sh
|
||||||
mode: 0555
|
mode: 0555
|
||||||
entrypoint: /usr/local/bin/entrypoint.sh
|
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: |
|
command: |
|
||||||
uvicorn
|
uvicorn
|
||||||
--host 0.0.0.0
|
--host 0.0.0.0
|
||||||
|
@ -51,14 +39,8 @@ services:
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
internal:
|
|
||||||
internal: true
|
|
||||||
|
|
||||||
configs:
|
configs:
|
||||||
nginx_conf:
|
|
||||||
name: ${STACK_NAME}_nginx_conf_${NGINX_CONF_VERSION}
|
|
||||||
file: nginx.conf.tmpl
|
|
||||||
template_driver: golang
|
|
||||||
entrypoint_sh:
|
entrypoint_sh:
|
||||||
name: ${STACK_NAME}_entrypoint_conf_${ENTRYPOINT_CONF_VERSION}
|
name: ${STACK_NAME}_entrypoint_conf_${ENTRYPOINT_CONF_VERSION}
|
||||||
file: entrypoint.sh.tmpl
|
file: entrypoint.sh.tmpl
|
||||||
|
|
Loading…
Reference in New Issue