-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switching to rabbitmq, adding flower and pgadmin (#9)
- Loading branch information
Showing
10 changed files
with
179 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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,5 +1,34 @@ | ||
# Docker Compose environment file used in CI. | ||
|
||
# -- Stack Configuration ----------------------------------------------------- | ||
|
||
# Backend | ||
BACKEND_CORS_ORIGINS= | ||
SECRET_KEY=ONLY-CI-secret-key | ||
FIRST_SUPERUSER=ONLY-CI-admin | ||
FIRST_SUPERUSER_PASSWORD=ONLY-CI-superuser-password | ||
# SMTP_TLS=True | ||
# SMTP_PORT= | ||
# SMTP_HOST= | ||
# SMTP_USER= | ||
# SMTP_PASSWORD= | ||
# EMAILS_FROM_EMAIL= | ||
|
||
# Postgres | ||
POSTGRES_SERVER=postgres | ||
POSTGRES_USER=reev | ||
POSTGRES_PASSWORD_FILE=/run/secrets/db-password | ||
POSTGRES_DB=reev | ||
|
||
# pgAdmin | ||
PGADMIN_LISTEN_PORT=80 | ||
PGADMIN_DEFAULT_EMAIL=[email protected] | ||
PGADMIN_DEFAULT_PASSWORD_FILE=/run/secrets/pgadmin-password | ||
PGADMIN_DISABLE_POSTFIX=1 | ||
|
||
# Flower | ||
FLOWER_BASIC_AUTH=admin:flower-password | ||
|
||
# -- Docker Images ----------------------------------------------------------- | ||
|
||
# Name of the registry server and org to use for our images. | ||
|
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 |
---|---|---|
|
@@ -28,18 +28,35 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Prepare secrets | ||
run: | | ||
mkdir -p .ci/secrets | ||
echo db-password > .ci/secrets/db-password | ||
echo pgadmin-password > .ci/secrets/pgadmin-password | ||
- name: Prepare empty volumes | ||
run: | | ||
mkdir -p .ci/volumes/minio/data | ||
mkdir -p .ci/volumes/pgadmin/data | ||
mkdir -p .ci/volumes/postgres/data | ||
mkdir -p .ci/volumes/rabbitmq/data | ||
mkdir -p .ci/volumes/redis/data | ||
mkdir -p .ci/volumes/minio/data | ||
mkdir -p .ci/volumes/varfish-static/data | ||
mkdir -p .ci/volumes/reev-static/data | ||
- name: Prepare configuration | ||
run: | | ||
cp .env.ci .env | ||
mkdir -p .ci/config/nginx | ||
cp utils/nginx/nginx.conf .ci/config/nginx | ||
mkdir -p .ci/config/pgadmin | ||
cp utils/pgadmin/servers.json .ci/config/pgadmin | ||
- name: Bring up and shut down services | ||
uses: isbang/[email protected] | ||
with: | ||
compose-file: docker-compose.yml | ||
compose-flags: | | ||
--env-file .env.ci | ||
--env-file .env | ||
env: | ||
DB_PASSWORD: "password" |
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
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,5 +1,34 @@ | ||
# Template for an .env file. | ||
|
||
# -- Stack Configuration ----------------------------------------------------- | ||
|
||
# Backend | ||
BACKEND_CORS_ORIGINS= | ||
SECRET_KEY=SECURITY-ALERT-REPLACE-THIS-KEY | ||
FIRST_SUPERUSER=admin | ||
FIRST_SUPERUSER_PASSWORD=SECURITY-ALERT-REPLACE-THIS | ||
# SMTP_TLS=True | ||
# SMTP_PORT= | ||
# SMTP_HOST= | ||
# SMTP_USER= | ||
# SMTP_PASSWORD= | ||
# EMAILS_FROM_EMAIL= | ||
|
||
# Postgres | ||
POSTGRES_SERVER=postgres | ||
POSTGRES_USER=reev | ||
POSTGRES_PASSWORD_FILE=/run/secrets/db-password | ||
POSTGRES_DB=reev | ||
|
||
# pgAdmin | ||
PGADMIN_LISTEN_PORT=80 | ||
[email protected] | ||
PGADMIN_DEFAULT_PASSWORD_FILE=/run/secrets/pgadmin-password | ||
PGADMIN_DISABLE_POSTFIX=1 | ||
|
||
# Flower | ||
FLOWER_BASIC_AUTH=admin:flower-password | ||
|
||
# -- Docker Images ----------------------------------------------------------- | ||
|
||
# Name of the registry server and org to use for our images. | ||
|
@@ -35,11 +64,23 @@ | |
# Version of the postgres image to use. | ||
# image_postgres_version=12 | ||
|
||
# Name of the redis image to use. | ||
# image_redis_name=redis | ||
# Name of the rabbitmq image to use. | ||
# image_rabbitmq_name=rabbitmq | ||
|
||
# Version of the rabbitmq image to use. | ||
# image_rabbitmq_version=3 | ||
|
||
# Name of the flower image to use. | ||
# image_flower_name=mher/flower | ||
|
||
# Version of the flower image to use. | ||
# image_flower_version=latest | ||
|
||
# Name of the pgadmin image to use. | ||
# image_pgadmin_name=dpage/pgadmin4 | ||
|
||
# Version of the redis image to use. | ||
# image_redis_version=6 | ||
# Version of the pgadmin image to use | ||
# image_pgadmin_version=latest | ||
|
||
# Name of the reev image to use. | ||
# image_reev_name=reev | ||
|
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,14 @@ | ||
{ | ||
"Servers": { | ||
"1": { | ||
"Name": "postgres", | ||
"Group": "Servers", | ||
"Port": 5432, | ||
"Username": "reev", | ||
"Host": "postgres", | ||
"SSLMode": "prefer", | ||
"MaintenanceDB": "postgres", | ||
"PasswordExecCommand": "cat /run/secrets/db-password" | ||
} | ||
} | ||
} |