-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3814772
commit d1c740a
Showing
7 changed files
with
130 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Test Docker Compose | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
test-docker-compose: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Start Docker compose | ||
run: | | ||
cd docker | ||
docker-compose up -d | ||
- | ||
name: Sleep for 30 seconds | ||
run: sleep 30s | ||
shell: bash | ||
- | ||
name: Check Docker compose | ||
if: always() | ||
run: | | ||
docker ps | ||
docker network ls | ||
docker inspect gws -f "{{json .NetworkSettings.Networks }}" | ||
wget http://localhost:18000 | ||
curl --fail -s http://localhost:18000/raster/query?lon=128.86&lat=-12.42&raster_name=crustal_thickness | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# This is for Michael Chin only... | ||
version: '3.9' | ||
|
||
volumes: | ||
gws-code: | ||
external: true | ||
name: gws-code | ||
gws-db-data: | ||
external: true | ||
name: gws-db-data-new | ||
|
||
services: | ||
gws-postgis: | ||
image: gplates/postgis | ||
networks: | ||
- gws-net | ||
hostname: gws-postgis | ||
volumes: | ||
- gws-db-data:/var/lib/postgresql/15/main | ||
ports: | ||
- 5432:5432 | ||
environment: | ||
- POSTGRES_PASSWORD="this is not a real password! go away!" | ||
restart: on-failure | ||
healthcheck: | ||
test: pg_isready -U gplates -d gplates | ||
interval: 1m30s | ||
timeout: 10s | ||
retries: 3 | ||
|
||
gws: | ||
image: gplates/gws | ||
networks: | ||
- gws-net | ||
hostname: gws | ||
depends_on: | ||
- gws-postgis | ||
- gws-redis | ||
volumes: | ||
- gws-code:/gws | ||
ports: | ||
- 18000:80 | ||
restart: on-failure | ||
healthcheck: | ||
test: curl --fail -s "http://localhost:80/raster/query?lon=128.86&lat=-12.42&raster_name=crustal_thickness" || exit 1 | ||
interval: 1m30s | ||
timeout: 10s | ||
retries: 3 | ||
|
||
gws-redis: | ||
image: redis | ||
networks: | ||
- gws-net | ||
hostname: gws-redis | ||
restart: on-failure | ||
healthcheck: | ||
test: redis-cli -h gws-redis ping | ||
interval: 1m30s | ||
timeout: 10s | ||
retries: 3 | ||
|
||
|
||
networks: | ||
gws-net: | ||
external: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters