2022-02-15 16:20:16 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
#Websites luke-else.co.uk (8000) snexo.co.uk (8001)
|
|
|
|
luke-else.co.uk:
|
2023-08-08 19:23:18 +00:00
|
|
|
image: "nginx:latest"
|
2022-02-15 16:20:16 +00:00
|
|
|
container_name: luke-else.co.uk
|
|
|
|
volumes:
|
2023-08-08 19:23:18 +00:00
|
|
|
- ./luke-else.co.uk/:/usr/share/nginx/html
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
depends_on:
|
|
|
|
- traefik
|
2022-11-03 16:29:15 +00:00
|
|
|
labels:
|
|
|
|
## Expose luke-else Through Trefik ##
|
|
|
|
- "traefik.enable=true" # <== Enable traefik to proxy this container
|
2023-08-07 22:01:29 +00:00
|
|
|
- "traefik.http.services.personal.loadbalancer.server.port=80"
|
|
|
|
- "traefik.http.routers.personal.rule=Host(`luke-else.co.uk`) || Host(`www.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.co.uk:
|
|
|
|
image: "php:apache"
|
|
|
|
container_name: snexo.co.uk
|
|
|
|
volumes:
|
|
|
|
- ./snexo.co.uk/:/var/www/html
|
2023-08-08 19:23:18 +00:00
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
depends_on:
|
|
|
|
- traefik
|
2022-11-03 16:29:15 +00:00
|
|
|
labels:
|
|
|
|
## Expose Snexo Through Trefik ##
|
|
|
|
- "traefik.enable=true" # <== Enable traefik to proxy this container
|
2023-08-07 22:01:29 +00:00
|
|
|
- "traefik.http.services.snexo.loadbalancer.server.port=80"
|
|
|
|
- "traefik.http.routers.snexo.rule=Host(`snexo.co.uk`) || Host(`www.snexo.co.uk`)"
|
|
|
|
- "traefik.http.routers.snexo.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.snexo.tls.certresolver=myresolver"
|
2022-10-31 21:39:29 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
networks:
|
2023-08-08 19:23:18 +00:00
|
|
|
proxy:
|
2022-10-31 21:39:29 +00:00
|
|
|
external: true
|