test actions
This commit is contained in:
parent
2f0e7c4867
commit
77b058f671
5
.github/workflows/stack-healthcheck.yml
vendored
5
.github/workflows/stack-healthcheck.yml
vendored
@ -12,10 +12,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Deploy the stack
|
- name: Deploy the stack
|
||||||
run: docker-compose up -d
|
run: timeout 5 docker-compose up -d
|
||||||
|
|
||||||
- name: Test PGAdmin
|
|
||||||
run: docker run --network container:resolve_pgadmin appropriate/curl --retry 10 --retry-delay 1 --retry-connrefused http://localhost/
|
|
||||||
|
|
||||||
- name: Setup tmate session
|
- name: Setup tmate session
|
||||||
uses: mxschmitt/action-tmate@v3
|
uses: mxschmitt/action-tmate@v3
|
||||||
|
@ -46,7 +46,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- *bk-location
|
- *bk-location
|
||||||
links:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
environment:
|
environment:
|
||||||
<<: [*db-environment, *backup-environment]
|
<<: [*db-environment, *backup-environment]
|
||||||
@ -54,6 +54,8 @@ services:
|
|||||||
POSTGRES_EXTRA_OPTS: --blobs --format=custom --quote-all-identifiers
|
POSTGRES_EXTRA_OPTS: --blobs --format=custom --quote-all-identifiers
|
||||||
BACKUP_SUFFIX: .backup
|
BACKUP_SUFFIX: .backup
|
||||||
HEALTHCHECK_PORT: 8080
|
HEALTHCHECK_PORT: 8080
|
||||||
|
healthcheck:
|
||||||
|
interval: 30s
|
||||||
pgadmin:
|
pgadmin:
|
||||||
container_name: resolve_pgadmin
|
container_name: resolve_pgadmin
|
||||||
image: dpage/pgadmin4
|
image: dpage/pgadmin4
|
||||||
@ -62,5 +64,7 @@ services:
|
|||||||
<<: [*admin-environment]
|
<<: [*admin-environment]
|
||||||
ports:
|
ports:
|
||||||
- *pgadmin-port
|
- *pgadmin-port
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost/ || exit 1"]
|
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost/ || exit 1"]
|
||||||
|
Loading…
Reference in New Issue
Block a user