Skip to content

Commit

Permalink
make domain name to be configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
syamsoul committed May 29, 2024
1 parent 40f6734 commit 36ac241
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APP_DOMAIN=php.localhost
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
expose:
- 8080
labels:
- traefik.http.routers.php.rule=Host(`php.localhost`)
- traefik.http.routers.php.rule=Host(`${APP_DOMAIN}`)
- traefik.http.routers.php.entrypoints=web
- traefik.http.routers.php.service=php-service
- traefik.http.services.php-service.loadbalancer.server.port=8080
Expand Down
3 changes: 2 additions & 1 deletion soul
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ fi
APP_SERVICE_NAME=www

DOCKER_COMPOSE_FILE_PATH=./docker/docker-compose.yml
ENV_FILE_PATH=./.env

DOCKER_COMPOSE_CMD="sudo docker compose -f $DOCKER_COMPOSE_FILE_PATH"
DOCKER_COMPOSE_CMD="sudo docker compose -f $DOCKER_COMPOSE_FILE_PATH --env-file=$ENV_FILE_PATH"
DOCKER_COMPOSE_EXEC_CMD="$DOCKER_COMPOSE_CMD exec -it $APP_SERVICE_NAME"
DOCKER_COMPOSE_EXEC_ROOT_CMD="$DOCKER_COMPOSE_CMD exec -it -u root $APP_SERVICE_NAME"
DOCKER_COMPOSE_EXEC_CURRENTUSER_CMD="$DOCKER_COMPOSE_CMD exec -it -u $(whoami) $APP_SERVICE_NAME"
Expand Down

0 comments on commit 36ac241

Please sign in to comment.