Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Iseard
Wordpress Docker
Commits
3dfb9f81
Commit
3dfb9f81
authored
Nov 30, 2019
by
Michael Iseard
Browse files
Add yarn and composer containers for issuing commands
parent
548eb847
Changes
1
Show whitespace changes
Inline
Side-by-side
docker-compose.yml
View file @
3dfb9f81
...
...
@@ -19,6 +19,22 @@ services:
-
traefik.http.routers.adminer.tls.certresolver=cloudflare
-
traefik.http.routers.adminer.entrypoints=websecure
yarn
:
image
:
node:10-alpine
container_name
:
${CONTAINER_PREFIX}-yarn
volumes
:
-
./wordpress/wp-content/themes/diamanttheater/:/app
working_dir
:
/app
command
:
[
"
yarn"
]
composer
:
image
:
composer:1.9.0
container_name
:
${CONTAINER_PREFIX}-composer
volumes
:
-
./wordpress/wp-content/themes/diamanttheater/:/app
depends_on
:
-
wordpress
wordpress
:
build
:
./build
container_name
:
${CONTAINER_PREFIX}-wordpress
...
...
@@ -53,7 +69,7 @@ services:
labels
:
-
traefik.enable=true
-
traefik.docker.network=web
-
traefik.http.routers.${CONTAINER_PREFIX}.rule=Host(`
${WEB_ADDRESS}
`)
-
traefik.http.routers.${CONTAINER_PREFIX}.rule=Host(`
diamant.iseard.media
`)
-
traefik.http.routers.${CONTAINER_PREFIX}.tls.certresolver=cloudflare
-
traefik.http.services.${CONTAINER_PREFIX}.loadbalancer.server.port=80
-
traefik.http.routers.${CONTAINER_PREFIX}.entrypoints=websecure
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment