Added WMGZON container

This commit is contained in:
Luke Else 2024-02-18 19:49:17 +00:00
parent 73311408a2
commit 35fe718153

View File

@ -2,7 +2,7 @@ version: '3.8'
services: services:
#Websites luke-else.co.uk (8000) snexo.co.uk (8001) #Websites luke-else.co.uk (8000) snexo.co.uk (8001) wmgzon.luke-else.co.uk (8080)
luke-else.co.uk: luke-else.co.uk:
build: ./luke-else.co.uk build: ./luke-else.co.uk
container_name: luke-else.co.uk container_name: luke-else.co.uk
@ -43,6 +43,31 @@ services:
- "traefik.http.routers.snexo.tls.certresolver=myresolver" - "traefik.http.routers.snexo.tls.certresolver=myresolver"
restart: unless-stopped restart: unless-stopped
wmgzon:
container_name: "wmgzon"
image: lukeelse/wmgzon:latest
tty: true
ports:
- "8080:8080"
volumes:
- ./files:/app/static/assets/img/products/
- ./data:/app/data/
networks:
- proxy
labels:
## Expose WMGZON Through Trefik ##
- "traefik.enable=true" # <== Enable traefik to proxy this container
- "traefik.http.middlewares.redirect-web-secure.redirectscheme.scheme=https"
- "traefik.http.routers.snexo-insecure.middlewares=redirect-web-secure"
- "traefik.http.routers.snexo-insecure.rule=Host(`wmgzon.luke-else.co.uk`)"
- "traefik.http.routers.snexo-insecure.entrypoints=web"
- "traefik.http.routers.snexo.rule=Host(`wmgzon.luke-else.co.uk`)"
- "traefik.http.routers.snexo.entrypoints=websecure"
- "traefik.http.routers.snexo.tls.certresolver=myresolver"
restart: unless-stopped
networks: networks:
proxy: proxy:
external: true external: true