chore: update docker-compose.yml to allow dynamic initialization SQL file path
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 5s
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 5s
This commit is contained in:
@@ -18,5 +18,6 @@ jobs:
|
|||||||
COMPOSE_DOCKER_CLI_BUILD: 1
|
COMPOSE_DOCKER_CLI_BUILD: 1
|
||||||
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
|
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
|
||||||
AUTH_URL: ${{ vars.AUTH_URL }}
|
AUTH_URL: ${{ vars.AUTH_URL }}
|
||||||
|
INIT_SQL: ${{ vars.INIT_SQL }}
|
||||||
run: |
|
run: |
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ services:
|
|||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
- ./scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
|
-${INIT_SQL:-./scripts/init.sql}:/docker-entrypoint-initdb.d/init.sql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U peakskills_user -d peakskills"]
|
test: ["CMD-SHELL", "pg_isready -U peakskills_user -d peakskills"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
|
|||||||
Reference in New Issue
Block a user