Merge branch 'master' of ssh://git.luke-else.co.uk:222/luke-else/server

This commit is contained in:
Luke Else 2024-12-12 12:42:57 +00:00
commit be4d4f2b50

View File

@ -15,42 +15,6 @@ services:
MONGO_INITDB_ROOT_PASSWORD: rootpassword
restart: unless-stopped
#MySQL (3306) + phpMyAdmin ()
mysql:
image: "mysql"
container_name: MySQL
volumes:
- ./mysql/:/var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: test_db
restart: unless-stopped
phpMyAdmin:
image: "phpmyadmin/phpmyadmin:latest"
container_name: phpMyAdmin
networks:
- proxy
depends_on:
- mysql
environment:
PMA_HOST: mysql
labels:
## Expose phpMyAdmin Through Trefik ##
- "traefik.enable=true" # <== Enable traefik to proxy this container
- "traefik.http.middlewares.redirect-web-secure.redirectscheme.scheme=https"
- "traefik.http.routers.phpmyadmin-insecure.middlewares=redirect-web-secure"
- "traefik.http.routers.phpmyadmin-insecure.rule=Host(`mysql.luke-else.co.uk`)"
- "traefik.http.routers.phpmyadmin-insecure.entrypoints=web"
- "traefik.http.routers.phpmyadmin.rule=Host(`mysql.luke-else.co.uk`)"
- "traefik.http.routers.phpmyadmin.entrypoints=websecure"
- "traefik.http.routers.phpmyadmin.tls.certresolver=myresolver"
restart: unless-stopped
networks:
proxy:
external: true