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

@@ -9,6 +9,7 @@ services:
container_name: escapepage-php
volumes:
- ../:/var/www/html:delegated
- /etc/hosts:/etc/hosts:ro
environment:
APP_ENV: ${APP_ENV:-dev}
depends_on:
@@ -26,6 +27,7 @@ services:
container_name: escapepage-php-worker
volumes:
- ../:/var/www/html:delegated
- /etc/hosts:/etc/hosts:ro
environment:
APP_ENV: ${APP_ENV:-dev}
depends_on:
@@ -45,6 +47,7 @@ services:
volumes:
- ../:/var/www/html:ro
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- /etc/hosts:/etc/hosts:ro
depends_on:
- php
networks:
@@ -57,6 +60,8 @@ services:
container_name: escapepage-mailer
ports:
- "8025:8025"
volumes:
- /etc/hosts:/etc/hosts:ro
networks:
backend:
ipv4_address: 172.20.0.13
@@ -77,6 +82,8 @@ services:
anonymous
ports:
- "8090:80"
volumes:
- /etc/hosts:/etc/hosts:ro
networks:
backend:
ipv4_address: 172.20.0.14
@@ -101,6 +108,7 @@ services:
volumes:
- ../var/volumes/db:/var/lib/mysql:rw
- ./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.)
ports:
- "3306:3306"

View File

@@ -28,7 +28,7 @@ else
fi
# 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
RECREATE=0