Commit 3dfb9f81 authored by Michael Iseard's avatar Michael Iseard
Browse files

Add yarn and composer containers for issuing commands

parent 548eb847
......@@ -18,6 +18,22 @@ services:
- traefik.http.routers.adminer.rule=Host(`adminer.iseard.media`)
- 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
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment