-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align github action with local development
- Build action from a compose file, bringing the action config and local config closer together - Add environment variable closes #59
- Loading branch information
1 parent
c5eec49
commit 089a800
Showing
6 changed files
with
50 additions
and
37 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,17 @@ | ||
services: | ||
postgis: | ||
build: | ||
context: db/. | ||
environment: | ||
- POSTGRES_USER=${FLOW_DATABASE_USER} | ||
- POSTGRES_PASSWORD=${FLOW_DATABASE_PASSWORD} | ||
- POSTGRES_DB=${FLOW_DATABASE_NAME} | ||
- TARGET_DATABASE_USER=${TARGET_DATABASE_USER} | ||
- TARGET_DATABASE_PASSWORD=${TARGET_DATABASE_PASSWORD} | ||
- TARGET_DATABASE_NAME=${TARGET_DATABASE_NAME} | ||
- TARGET_DATABASE_PORT=${TARGET_DATABASE_PORT} | ||
- TARGET_DATABASE_HOST=${TARGET_DATABASE_HOST} | ||
ports: | ||
- $FLOW_DATABASE_PORT:5432 | ||
volumes: | ||
- ./db/pg:/var/lib/postgresql/flow |
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,5 @@ | ||
services: | ||
db: | ||
extends: | ||
file: common-services.yml | ||
service: postgis |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM postgres:15-bookworm | ||
|
||
RUN apt update | ||
RUN apt install -y postgresql-15-postgis-3 | ||
RUN apt-get update | ||
RUN apt-get install -y postgresql-15-postgis-3 | ||
|
||
WORKDIR /var/lib/postgresql |
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