-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from universityofadelaide/settings-php-defaults
Simplify docker compose and dsh
- Loading branch information
Showing
6 changed files
with
119 additions
and
357 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
version: '3' | ||
services: | ||
web: | ||
image: uofa/apache2-php7-dev:foundation | ||
# This makes the container run on the same network stack as your | ||
# workstation. Meaning that you can interact on "localhost". | ||
network_mode: host | ||
environment: | ||
SITE_TITLE: WCMS D8 | ||
SITE_MAIL: [email protected] | ||
SITE_ADMIN_EMAIL: [email protected] | ||
SITE_ADMIN_USERNAME: admin | ||
SITE_ADMIN_PASSWORD: password | ||
PUBLIC_DIR: /shared/public | ||
HASH_SALT: random-hash | ||
CONFIG_SYNC_DIRECTORY: /shared/private/random-hash/sync | ||
SHEPHERD_SITE_ID: 2 | ||
SHEPHERD_URL: http://shepherd.test | ||
SHEPHERD_TOKEN: super-secret-token | ||
SHEPHERD_INSTALL_PROFILE: ua | ||
REDIS_ENABLED: 1 | ||
SHEPHERD_SECRET_PATH: /code/private | ||
XDEBUG_CONFIG: "remote_host=127.0.0.1" | ||
PHP_IDE_CONFIG: serverName=localhost | ||
volumes: | ||
- .:/code | ||
- ./shared:/shared | ||
- $HOME/.ssh/id_rsa:/root/.ssh/id_rsa | ||
|
||
db: | ||
image: mariadb | ||
network_mode: host | ||
environment: | ||
MYSQL_DATABASE: drupal | ||
MYSQL_USER: user | ||
MYSQL_PASSWORD: password | ||
MYSQL_ROOT_PASSWORD: super-secret-password | ||
|
||
mail: | ||
image: mailhog/mailhog | ||
network_mode: host | ||
|
||
redis: | ||
image: redis:alpine | ||
network_mode: host |
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,55 @@ | ||
version: '3' | ||
services: | ||
web: | ||
image: uofa/apache2-php7-dev:foundation | ||
# You will notice that we are forwarding port which do not belong to PHP. | ||
# We have to declare them here because these "sidecar" services are sharing | ||
# THIS containers network stack. | ||
ports: | ||
- "80:80" | ||
- "3306:3306" | ||
- "8025:8025" | ||
environment: | ||
SITE_TITLE: WCMS D8 | ||
SITE_MAIL: [email protected] | ||
SITE_ADMIN_EMAIL: [email protected] | ||
SITE_ADMIN_USERNAME: admin | ||
SITE_ADMIN_PASSWORD: password | ||
PUBLIC_DIR: /shared/public | ||
HASH_SALT: random-hash | ||
CONFIG_SYNC_DIRECTORY: /shared/private/random-hash/sync | ||
SHEPHERD_SITE_ID: 2 | ||
SHEPHERD_URL: http://shepherd.test | ||
SHEPHERD_TOKEN: super-secret-token | ||
SHEPHERD_INSTALL_PROFILE: ua | ||
REDIS_ENABLED: 1 | ||
SHEPHERD_SECRET_PATH: /code/private | ||
XDEBUG_CONFIG: "remote_host=docker.for.mac.localhost" | ||
PHP_IDE_CONFIG: serverName=localhost | ||
volumes: | ||
- .:/code | ||
- ./shared:/shared | ||
- $HOME/.ssh/id_rsa:/root/.ssh/id_rsa | ||
|
||
xdebug: | ||
image: nickschuch/d4m-tcp-forwarder | ||
network_mode: host | ||
environment: | ||
- PORT=9000 | ||
|
||
db: | ||
image: mariadb | ||
network_mode: service:web | ||
environment: | ||
MYSQL_DATABASE: drupal | ||
MYSQL_USER: user | ||
MYSQL_PASSWORD: password | ||
MYSQL_ROOT_PASSWORD: super-secret-password | ||
|
||
mail: | ||
image: mailhog/mailhog | ||
network_mode: service:web | ||
|
||
redis: | ||
image: redis:alpine | ||
network_mode: service:web |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.