Compose nginx and set the public dir as a vol... instead
This commit is contained in:
parent
b17e39e2f9
commit
e1545d2229
@ -1,5 +0,0 @@
|
|||||||
FROM nginx:1.21-alpine
|
|
||||||
COPY public /usr/share/nginx/html
|
|
||||||
|
|
||||||
EXPOSE 8500
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
|||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: europe-west6-docker.pkg.dev/wiki-cafe-0001/docker/apex
|
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "curl", "-f", "http://localhost"]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 10
|
|
||||||
start_period: 15s
|
|
||||||
deploy:
|
|
||||||
update_config:
|
|
||||||
failure_action: rollback
|
|
||||||
order: start-first
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.services.apex_wiki_cafe.loadbalancer.server.port=80"
|
|
||||||
- "traefik.http.routers.apex_wiki_cafe.rule=Host(`wiki.cafe`, `www.wiki.cafe`)"
|
|
||||||
- "traefik.http.routers.apex_wiki_cafe.entrypoints=web-secure"
|
|
||||||
- "traefik.http.routers.apex_wiki_cafe.tls.certresolver=production"
|
|
||||||
# - "traefik.http.routers.apex_wiki_cafe.middlewares=apex_wiki_cafe-redirect"
|
|
||||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
|
||||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
|
||||||
networks:
|
|
||||||
proxy:
|
|
||||||
external: true
|
|
Loading…
x
Reference in New Issue
Block a user