init proj
This commit is contained in:
27
compose.yml
Normal file
27
compose.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
services:
|
||||
webpage:
|
||||
image: nginx:alpine
|
||||
container_name: webpage
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TITLE=${TITLE}
|
||||
- DOMAIN_MAIN=${DOMAIN_MAIN}
|
||||
- NGINX_ENVSUBST_OUTPUT_DIR=/usr/share/nginx/html
|
||||
volumes:
|
||||
# Wir mounten das Template - Nginx macht daraus beim Start die echte index.html
|
||||
- ./html/index.html.template:/etc/nginx/templates/index.html.template:ro
|
||||
#- ./html/crl.pem:/var/www/html/crl.pem:ro
|
||||
- ./html/crl.pem:/usr/share/nginx/html/crl.pem:ro
|
||||
#- ./nginx/crl.conf:/etc/nginx/conf.d/crl.conf:ro
|
||||
networks:
|
||||
- proxy
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.webpage.rule=Host(`${DOMAIN_MAIN}`)"
|
||||
- "traefik.http.routers.webpage.entrypoints=websecure"
|
||||
- "traefik.http.routers.webpage.tls.certresolver=myresolver"
|
||||
- "traefik.http.services.webpage.loadbalancer.server.port=80"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
Reference in New Issue
Block a user