-
Notifications
You must be signed in to change notification settings - Fork 153
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
Showing
5 changed files
with
101 additions
and
53 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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# This is the Compose file for command-line services. | ||
# Anything that doesn't need to be run as part of the main `docker-compose up' | ||
# command should reside in here and be invoked by a helper script. | ||
version: "3.7" | ||
|
||
services: | ||
app: | ||
image: ghcr.io/oidc-wp/openid-connect-generic-devcontainer | ||
restart: always | ||
depends_on: | ||
- db | ||
working_dir: /workspaces/openid-connect-generic | ||
environment: &env | ||
WORDPRESS_DB_HOST: db | ||
WORDPRESS_DB_NAME: wordpress | ||
WORDPRESS_DB_USER: wordpress | ||
WORDPRESS_DB_PASSWORD: wordpress | ||
WORDPRESS_TEST_DB_NAME: wordpress_test | ||
CODESPACES: "${CODESPACES}" | ||
CODESPACE_NAME: "${CODESPACE_NAME}" | ||
GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN: "${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}" | ||
volumes: | ||
- .:/workspaces/openid-connect-generic:cached | ||
- ./tools/local-env:/app:cached | ||
- ./tools/php/php-cli.ini:/usr/local/etc/php/php-cli.ini:ro,cached | ||
- .:/app/wp-content/plugins/daggerhart-openid-connect-generic:ro,cached | ||
- ~/.composer:/root/.composer:cached | ||
- ~/.npm:/root/.npm:cached | ||
networks: | ||
- oidcwp-net | ||
|
||
db: | ||
image: mariadb | ||
restart: unless-stopped | ||
ports: | ||
- 3306:3306 | ||
environment: | ||
MYSQL_DATABASE: wordpress | ||
MYSQL_ROOT_PASSWORD: password | ||
MYSQL_USER: wordpress | ||
MYSQL_PASSWORD: wordpress | ||
volumes: | ||
- db:/var/lib/mysql | ||
- ./tests/db-wordpress_test.sql:/docker-entrypoint-initdb.d/db-wordpress_test.sql | ||
networks: | ||
- oidcwp-net | ||
|
||
volumes: | ||
db: | ||
|
||
networks: | ||
oidcwp-net: | ||
|