Removed mysql from server hosted applications
This commit is contained in:
parent
3360d966f7
commit
3ff3cb5449
@ -15,42 +15,6 @@ services:
|
|||||||
MONGO_INITDB_ROOT_PASSWORD: rootpassword
|
MONGO_INITDB_ROOT_PASSWORD: rootpassword
|
||||||
restart: unless-stopped
|
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:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
Loading…
Reference in New Issue
Block a user