90 lines
3.4 KiB
YAML
90 lines
3.4 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
|
|
#Websites luke-else.co.uk (8000) snexo.co.uk (8001) divine-couture.co.uk (80) 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"
|
|
restart: unless-stopped
|
|
|
|
divine-couture:
|
|
image: lukeelse/divine-couture.co.uk:latest
|
|
container_name: divine-couture
|
|
networks:
|
|
- proxy
|
|
labels:
|
|
## Expose divine-couture Through Trefik ##
|
|
- "traefik.enable=true" # <== Enable traefik to proxy this container
|
|
|
|
- "traefik.http.middlewares.redirect-web-secure.redirectscheme.scheme=https"
|
|
- "traefik.http.routers.divine-couture-insecure.middlewares=redirect-web-secure"
|
|
- "traefik.http.routers.divine-couture-insecure.rule=Host(`www.divine-couture.co.uk`)"
|
|
- "traefik.http.routers.divine-couture-insecure.entrypoints=web"
|
|
|
|
- "traefik.http.routers.divine-couture.rule=Host(`www.divine-couture.co.uk`)"
|
|
- "traefik.http.routers.divine-couture.entrypoints=websecure"
|
|
- "traefik.http.routers.divine-couture.tls.certresolver=myresolver"
|
|
restart: unless-stopped
|
|
|
|
snexo:
|
|
image: "php:apache"
|
|
container_name: snexo
|
|
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
|
|
|
|
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"
|
|
- "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"
|
|
|
|
- "traefik.http.routers.wmgzon.rule=Host(`wmgzon.luke-else.co.uk`)"
|
|
- "traefik.http.routers.wmgzon.entrypoints=websecure"
|
|
- "traefik.http.routers.wmgzon.tls.certresolver=myresolver"
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
proxy:
|
|
external: true |