server/Websites/docker-compose.yml

71 lines
2.5 KiB
YAML
Raw Normal View History

2022-02-15 16:20:16 +00:00
version: '3.8'
services:
2024-02-18 19:49:17 +00:00
#Websites luke-else.co.uk (8000) snexo.co.uk (8001) wmgzon.luke-else.co.uk (8080)
luke-else:
build: ./luke-else.co.uk
container_name: luke-else
networks:
- proxy
labels:
## Expose luke-else Through Trefik ##
- "traefik.enable=true" # <== Enable traefik to proxy this container
- "traefik.http.middlewares.redirect-web-secure.redirectscheme.scheme=https"
- "traefik.http.routers.personal-insecure.middlewares=redirect-web-secure"
- "traefik.http.routers.personal-insecure.rule=Host(`luke-else.co.uk`)"
- "traefik.http.routers.personal-insecure.entrypoints=web"
- "traefik.http.routers.personal.rule=Host(`luke-else.co.uk`)"
- "traefik.http.routers.personal.entrypoints=websecure"
- "traefik.http.routers.personal.tls.certresolver=myresolver"
2022-02-15 16:20:16 +00:00
restart: unless-stopped
snexo:
2022-02-15 16:20:16 +00:00
image: "php:apache"
container_name: snexo
2022-02-15 16:20:16 +00:00
volumes:
- ./snexo.co.uk/:/var/www/html
networks:
- proxy
labels:
## Expose Snexo 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(`snexo.co.uk`)"
- "traefik.http.routers.snexo-insecure.entrypoints=web"
- "traefik.http.routers.snexo.rule=Host(`snexo.co.uk`)"
- "traefik.http.routers.snexo.entrypoints=websecure"
- "traefik.http.routers.snexo.tls.certresolver=myresolver"
restart: unless-stopped
2024-02-18 19:49:17 +00:00
wmgzon:
container_name: "wmgzon"
image: lukeelse/wmgzon:latest
tty: true
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"
2024-02-18 21:23:09 +00:00
- "traefik.http.routers.wmgzon-insecure.middlewares=redirect-web-secure"
- "traefik.http.routers.wmgzon-insecure.rule=Host(`wmgzon.luke-else.co.uk`)"
- "traefik.http.routers.wmgzon-insecure.entrypoints=web"
2024-02-18 19:49:17 +00:00
2024-02-18 21:23:09 +00:00
- "traefik.http.routers.wmgzon.rule=Host(`wmgzon.luke-else.co.uk`)"
- "traefik.http.routers.wmgzon.entrypoints=websecure"
- "traefik.http.routers.wmgzon.tls.certresolver=myresolver"
2024-02-18 19:49:17 +00:00
restart: unless-stopped
networks:
proxy:
external: true