fix: move DB to web network (Docker 29.4.0 ICC bug)
This commit is contained in:
@@ -6,38 +6,37 @@ services:
|
|||||||
dockerfile: ../Dockerfile
|
dockerfile: ../Dockerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=3000
|
- PORT=3000
|
||||||
- DATABASE_URL=mysql://podcasts_user:PodcastsDB2026Secure!@podcasts-db:3306/itinova_podcasts
|
- DATABASE_URL=mysql://podcasts_user:PodcastsDB2026Secure!@podcasts-db:3306/itinova_podcasts
|
||||||
- JWT_SECRET=podcasts-jwt-secret-2026-prod
|
- JWT_SECRET=podcasts-jwt-secret-2026-prod
|
||||||
depends_on:
|
depends_on:
|
||||||
podcasts-db:
|
podcasts-db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
networks:
|
networks:
|
||||||
- web
|
- web
|
||||||
- podcasts-internal
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.podcasts.rule=Host(`podcasts.santinova-soft.org`)"
|
- "traefik.http.routers.podcasts.rule=Host(`podcasts.santinova-soft.org`)"
|
||||||
- "traefik.http.routers.podcasts.entrypoints=websecure"
|
- "traefik.http.routers.podcasts.entrypoints=websecure"
|
||||||
- "traefik.http.routers.podcasts.tls=true"
|
- "traefik.http.routers.podcasts.tls=true"
|
||||||
- "traefik.http.routers.podcasts.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.podcasts.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.services.podcasts.loadbalancer.server.port=3000"
|
- "traefik.http.services.podcasts.loadbalancer.server.port=3000"
|
||||||
- "traefik.docker.network=web"
|
- "traefik.docker.network=web"
|
||||||
|
|
||||||
podcasts-db:
|
podcasts-db:
|
||||||
container_name: podcasts-db
|
container_name: podcasts-db
|
||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=PodcastsRootDB2026!
|
- MYSQL_ROOT_PASSWORD=PodcastsRootDB2026!
|
||||||
- MYSQL_DATABASE=itinova_podcasts
|
- MYSQL_DATABASE=itinova_podcasts
|
||||||
- MYSQL_USER=podcasts_user
|
- MYSQL_USER=podcasts_user
|
||||||
- MYSQL_PASSWORD=PodcastsDB2026Secure!
|
- MYSQL_PASSWORD=PodcastsDB2026Secure!
|
||||||
volumes:
|
volumes:
|
||||||
- podcasts-db-data:/var/lib/mysql
|
- podcasts-db-data:/var/lib/mysql
|
||||||
networks:
|
networks:
|
||||||
- podcasts-internal
|
- web
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-pPodcastsRootDB2026!"]
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-pPodcastsRootDB2026!"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@@ -47,8 +46,5 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
web:
|
web:
|
||||||
external: true
|
external: true
|
||||||
podcasts-internal:
|
|
||||||
driver: bridge
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
podcasts-db-data:
|
podcasts-db-data:
|
||||||
|
|||||||
Reference in New Issue
Block a user