Mercure en hostfile

This commit is contained in:
Frank
2026-01-09 18:38:57 +01:00
parent ea54c87426
commit 7ca0bec145
3 changed files with 10 additions and 3 deletions

View File

@@ -4,5 +4,4 @@ mercure:
url: '%env(MERCURE_URL)%' url: '%env(MERCURE_URL)%'
public_url: '%env(MERCURE_PUBLIC_URL)%' public_url: '%env(MERCURE_PUBLIC_URL)%'
jwt: jwt:
secret: '%env(MERCURE_JWT_SECRET)%' value: '%env(MERCURE_PUBLISHER_JWT_TOKEN)%'
publish: ['*']

View File

@@ -9,6 +9,7 @@ services:
container_name: escapepage-php container_name: escapepage-php
volumes: volumes:
- ../:/var/www/html:delegated - ../:/var/www/html:delegated
- /etc/hosts:/etc/hosts:ro
environment: environment:
APP_ENV: ${APP_ENV:-dev} APP_ENV: ${APP_ENV:-dev}
depends_on: depends_on:
@@ -26,6 +27,7 @@ services:
container_name: escapepage-php-worker container_name: escapepage-php-worker
volumes: volumes:
- ../:/var/www/html:delegated - ../:/var/www/html:delegated
- /etc/hosts:/etc/hosts:ro
environment: environment:
APP_ENV: ${APP_ENV:-dev} APP_ENV: ${APP_ENV:-dev}
depends_on: depends_on:
@@ -45,6 +47,7 @@ services:
volumes: volumes:
- ../:/var/www/html:ro - ../:/var/www/html:ro
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- /etc/hosts:/etc/hosts:ro
depends_on: depends_on:
- php - php
networks: networks:
@@ -57,6 +60,8 @@ services:
container_name: escapepage-mailer container_name: escapepage-mailer
ports: ports:
- "8025:8025" - "8025:8025"
volumes:
- /etc/hosts:/etc/hosts:ro
networks: networks:
backend: backend:
ipv4_address: 172.20.0.13 ipv4_address: 172.20.0.13
@@ -77,6 +82,8 @@ services:
anonymous anonymous
ports: ports:
- "8090:80" - "8090:80"
volumes:
- /etc/hosts:/etc/hosts:ro
networks: networks:
backend: backend:
ipv4_address: 172.20.0.14 ipv4_address: 172.20.0.14
@@ -101,6 +108,7 @@ services:
volumes: volumes:
- ../var/volumes/db:/var/lib/mysql:rw - ../var/volumes/db:/var/lib/mysql:rw
- ./mysql/init:/docker-entrypoint-initdb.d:ro - ./mysql/init:/docker-entrypoint-initdb.d:ro
- /etc/hosts:/etc/hosts:ro
# Uncomment the two lines below if you need to access MySQL from your host (workbench, etc.) # Uncomment the two lines below if you need to access MySQL from your host (workbench, etc.)
ports: ports:
- "3306:3306" - "3306:3306"

View File

@@ -28,7 +28,7 @@ else
fi fi
# Helper to run docker compose from the docker/ directory # Helper to run docker compose from the docker/ directory
dc() { (cd "$DOCKER_DIR" && $DOCKER_COMPOSE -f compose.yaml "$@"); } dc() { (cd "$DOCKER_DIR" && $DOCKER_COMPOSE --env-file ../.env -f compose.yaml "$@"); }
REBUILD=1 REBUILD=1
RECREATE=0 RECREATE=0