diff --git a/.env b/.env new file mode 100644 index 0000000..2175062 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +APP_DOMAIN=php.localhost \ No newline at end of file diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index e3216cf..d4d56dc 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -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 diff --git a/soul b/soul index 38f8624..11a41ce 100644 --- a/soul +++ b/soul @@ -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"