Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ APP_KEY=
APP_DEBUG=false
APP_URL=http://localhost

# Docker Compose host ports. Change these for each worktree when running multiple environments.
# When changing WEB_PORT, also update APP_URL above to include the same port (for example, http://localhost:8081).
#WEB_PORT=8081
#DB_FORWARD_PORT=33061
#MAILHOG_PORT=18025
#DUSK_DRIVER_PORT=14444
#DUSK_VNC_PORT=15900
#DUSK_NOVNC_PORT=17900

LOG_CHANNEL=daily_info

DB_CONNECTION=mysql
Expand Down
12 changes: 4 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
services:
webapp:
container_name: webapp
build:
context: ./docker/webapp
args:
Expand All @@ -9,18 +8,17 @@ services:
volumes:
- .:/var/www/html/connect-cms
ports:
- "80:80"
- "${WEB_PORT:-80}:80"
depends_on:
db:
condition: service_started
environment:
TZ: ${APP_TZ:-Asia/Tokyo}
DUSK_DRIVER_URL: ${DUSK_DRIVER_URL:-http://dusk:4444/wd/hub}
db:
container_name: db
image: ${MYSQL_IMAGE:-mysql:8}
ports:
- "3306:3306"
- "${DB_FORWARD_PORT:-3306}:3306"
restart: always
volumes:
- ./docker/db/mysql_data:/var/lib/mysql
Expand All @@ -30,15 +28,13 @@ services:
MYSQL_USER: ${DB_USERNAME:-app}
MYSQL_PASSWORD: ${DB_PASSWORD:-secret}
MYSQL_DATABASE: ${DB_DATABASE:-connect}
MYSQL_TCP_PORT: ${DB_PORT:-3306}
MYSQL_TCP_PORT: 3306
TZ: ${APP_TZ:-Asia/Tokyo}
mailhog:
container_name: mailhog
image: mailhog/mailhog
ports:
- "8025:8025"
- "${MAILHOG_PORT:-8025}:8025"
dusk:
container_name: dusk
image: selenium/standalone-chrome:latest
restart: unless-stopped
shm_size: 2g
Expand Down
Loading