-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧱(infra) select databases to run sites
Running the activate script it also provides the possibility of select for what of the supported databases it should build the app
- Loading branch information
1 parent
657d0da
commit 5dfc6d5
Showing
11 changed files
with
161 additions
and
92 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
17 changes: 17 additions & 0 deletions
17
cookiecutter/{{cookiecutter.organization}}-richie-site-factory/docker-compose-mysql.yml
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: | ||
mysql: | ||
image: mysql:8.0 | ||
ports: | ||
- "3306:3306" | ||
environment: | ||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes | ||
- MYSQL_ROOT_PASSWORD= | ||
- MYSQL_DATABASE=richie_${RICHIE_SITE:?} | ||
command: --default-authentication-plugin=caching_sha2_password | ||
healthcheck: | ||
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"] | ||
interval: 1s | ||
timeout: 2s | ||
retries: 300 | ||
volumes: | ||
- ./data/db/${RICHIE_SITE:?}:/var/lib/mysql |
14 changes: 14 additions & 0 deletions
14
cookiecutter/{{cookiecutter.organization}}-richie-site-factory/docker-compose-postgresql.yml
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 @@ | ||
services: | ||
postgresql: | ||
image: postgres:16.4 | ||
ports: | ||
- "5472:5432" | ||
env_file: | ||
- env.d/postgresql | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready"] | ||
interval: 1s | ||
timeout: 2s | ||
retries: 300 | ||
volumes: | ||
- ./data/db/${RICHIE_SITE:?}:/var/lib/postgresql/data |
1 change: 1 addition & 0 deletions
1
cookiecutter/{{cookiecutter.organization}}-richie-site-factory/docker-compose-sqlite.yml
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 @@ | ||
# This file is empty on purpose! |
Oops, something went wrong.