Fix production deploy routing and Traefik project reuse
Build & Push / Build & Push Docker Image (push) Failing after 28s
Build & Push / Build & Push Docker Image (push) Failing after 28s
- pass NEXT_PUBLIC_CARPLACE_URL into the production Docker build - run the production deploy script after building the image - support raw or base64 production env secrets during deploy - copy the production env file into the remote build context - include homepage in production deploy, pull, and health checks - use a stable Traefik Compose project name to avoid duplicate proxy containers
This commit is contained in:
@@ -7,6 +7,7 @@ PROD_COMPOSE_FILE="${ROOT_DIR}/docker-compose.production.yml"
|
||||
TRAEFIK_COMPOSE_FILE="${ROOT_DIR}/traefik.yaml"
|
||||
ENV_FILE="${ROOT_DIR}/.env.docker.production"
|
||||
PROJECT_NAME="${DOCKER_PROD_PROJECT_NAME:-rentaldrivego-prod}"
|
||||
TRAEFIK_PROJECT_NAME="${DOCKER_TRAEFIK_PROJECT_NAME:-rentaldrivego}"
|
||||
TRAEFIK_NETWORK="${DOCKER_PROD_TRAEFIK_NETWORK:-traefik-proxy}"
|
||||
VOLUME_BACKUP_IMAGE="${DOCKER_VOLUME_BACKUP_IMAGE:-postgres:16-alpine}"
|
||||
API_UPLOADS_VOLUME="${DOCKER_PROD_API_UPLOADS_VOLUME:-${PROJECT_NAME}_api_uploads}"
|
||||
@@ -251,7 +252,7 @@ prod_compose() {
|
||||
|
||||
traefik_compose() {
|
||||
export_compose_env_from_file
|
||||
docker compose --env-file "${ENV_FILE}" -f "${TRAEFIK_COMPOSE_FILE}" "$@"
|
||||
docker compose -p "${TRAEFIK_PROJECT_NAME}" --env-file "${ENV_FILE}" -f "${TRAEFIK_COMPOSE_FILE}" "$@"
|
||||
}
|
||||
|
||||
start_prod_services() {
|
||||
|
||||
Reference in New Issue
Block a user