diff --git a/ghost/docker-compose.yml b/ghost/docker-compose.yml index a7b3a69..aacbe21 100644 --- a/ghost/docker-compose.yml +++ b/ghost/docker-compose.yml @@ -11,6 +11,9 @@ services: database__connection__user: root database__connection__password: RJbhYNaCEB3fu8cbtkteetxTR5LtZjnPsqATGgPZ database__connection__database: ghostdb + networks: + - traefik + - default depends_on: - ghost_db restart: unless-stopped @@ -21,7 +24,10 @@ services: - "traefik.http.routers.ghost.entrypoints=websecure" - "traefik.http.routers.ghost.rule=Host(`read.$DOMAIN_NAME`)" - "traefik.http.routers.ghost.tls.certresolver=letsencr" + ghost_db: + networks: + - default image: mysql:8 restart: unless-stopped command: --default-authentication-plugin=mysql_native_password @@ -31,6 +37,9 @@ services: - /srv/ghost_mysql:/var/lib/mysql ports: - 3306:3306 + networks: traefik: - external: true \ No newline at end of file + external: true + default: + external: false \ No newline at end of file