I am trying to deploy the following stack:
version: "3.7"
services:
wordpress_ahs:
image: ghcr.io/ndigitals/openlitespeed:latest
volumes:
- /root/ah/lsws/conf:/usr/local/lsws/conf
- /root/ah/lsws/admin/conf:/usr/local/lsws/admin/conf
- /root/ah/bin/container:/usr/local/bin
- /root/ah/sites:/var/www/vhosts/
- /root/ah/acme:/root/.acme.sh/
- /root/ah/logs:/usr/local/lsws/logs/
#ports:
# - 80:80
# - 443:443
# - 443:443/udp
# - 7080:7080
restart: always
networks:
- network_public
environment:
TZ: Europe/Vienna
deploy:
mode: replicated
# Vamos ter apenas uma instância
replicas: 1
placement:
constraints:
- node.hostname == worker-de1
resources:
limits:
cpus: "1"
memory: 2048M
labels:
# Main site
- traefik.enable=true
- traefik.http.routers.wordpress_ahs.rule=Host(`www.domain.com`)
- traefik.http.routers.wordpress_ahs.entrypoints=websecure
- traefik.http.routers.wordpress_ahs.priority=1
- traefik.http.routers.wordpress_ahs.tls.certresolver=letsencryptresolver
- traefik.http.routers.wordpress_ahs.service=wordpress_ahs
- traefik.http.services.wordpress_ahs.loadbalancer.server.port=80
- traefik.http.services.wordpress_ahs.loadbalancer.passHostHeader=1
# Admin dashboard
- traefik.http.routers.wordpress_ahsa.rule=(Host(`admin.domain.com`))
- traefik.http.routers.wordpress_ahsa.entrypoints=websecure
- traefik.http.routers.wordpress_ahsa.priority=1
- traefik.http.routers.wordpress_ahsa.tls.certresolver=letsencryptresolver
- traefik.http.routers.wordpress_ahsa.service=wordpress_ahs
- traefik.http.services.wordpress_ahsa.loadbalancer.server.port=7080
- traefik.http.services.wordpress_ahsa.loadbalancer.passHostHeader=1
networks:
network_public:
name: network_public
external: true
When I access those addreses I get on www.domain.com a 404 page, which is expected, but on the admin.domain.com I get a 404 page as well, which should be showing the login to the admin area. When I expose the port, I get a security certificate warning, but the login to the dashboard is showing. Am I doing something wrong?
version: "3.7"
services:
wordpress_ahs:
image: ghcr.io/ndigitals/openlitespeed:latest
volumes:
- /root/ah/lsws/conf:/usr/local/lsws/conf
- /root/ah/lsws/admin/conf:/usr/local/lsws/admin/conf
- /root/ah/bin/container:/usr/local/bin
- /root/ah/sites:/var/www/vhosts/
- /root/ah/acme:/root/.acme.sh/
- /root/ah/logs:/usr/local/lsws/logs/
#ports:
# - 80:80
# - 443:443
# - 443:443/udp
# - 7080:7080
restart: always
networks:
- network_public
environment:
TZ: Europe/Vienna
deploy:
mode: replicated
# Vamos ter apenas uma instância
replicas: 1
placement:
constraints:
- node.hostname == worker-de1
resources:
limits:
cpus: "1"
memory: 2048M
labels:
# Main site
- traefik.enable=true
- traefik.http.routers.wordpress_ahs.rule=Host(`www.domain.com`)
- traefik.http.routers.wordpress_ahs.entrypoints=websecure
- traefik.http.routers.wordpress_ahs.priority=1
- traefik.http.routers.wordpress_ahs.tls.certresolver=letsencryptresolver
- traefik.http.routers.wordpress_ahs.service=wordpress_ahs
- traefik.http.services.wordpress_ahs.loadbalancer.server.port=80
- traefik.http.services.wordpress_ahs.loadbalancer.passHostHeader=1
# Admin dashboard
- traefik.http.routers.wordpress_ahsa.rule=(Host(`admin.domain.com`))
- traefik.http.routers.wordpress_ahsa.entrypoints=websecure
- traefik.http.routers.wordpress_ahsa.priority=1
- traefik.http.routers.wordpress_ahsa.tls.certresolver=letsencryptresolver
- traefik.http.routers.wordpress_ahsa.service=wordpress_ahs
- traefik.http.services.wordpress_ahsa.loadbalancer.server.port=7080
- traefik.http.services.wordpress_ahsa.loadbalancer.passHostHeader=1
networks:
network_public:
name: network_public
external: true
When I access those addreses I get on www.domain.com a 404 page, which is expected, but on the admin.domain.com I get a 404 page as well, which should be showing the login to the admin area. When I expose the port, I get a security certificate warning, but the login to the dashboard is showing. Am I doing something wrong?