oliverdavies.uk-drupal-old/docker-compose.yaml

49 lines
1 KiB
YAML
Raw Normal View History

2021-02-09 12:00:00 +00:00
version: '2.4'
volumes:
2021-05-09 20:01:32 +00:00
assets:
2021-02-09 12:00:00 +00:00
mysql_data:
2021-05-09 20:01:32 +00:00
node_modules:
2021-02-09 12:00:00 +00:00
services:
nginx:
2021-05-09 20:01:32 +00:00
build:
context: .
target: nginx
2021-02-09 12:00:00 +00:00
volumes:
2021-05-09 20:01:32 +00:00
- assets:/app/web/themes/custom/opdavies/build
- node_modules:/app/web/themes/custom/opdavies/node_modules
2021-02-09 12:00:00 +00:00
- ./:/app
depends_on:
php:
condition: service_started
ports:
- "${DOCKER_WEB_PORT:-127.0.0.1:80}:80"
2021-12-07 02:20:10 +00:00
restart: unless-stopped
2021-02-09 12:00:00 +00:00
php:
build:
context: .
target: dev
2021-12-07 02:19:49 +00:00
image: ghcr.io/opdavies/oliverdavies-uk-php:7.4-alpine
2021-02-09 12:00:00 +00:00
volumes:
- ./:/app
env_file:
- .docker.env
depends_on:
mysql:
condition: service_healthy
2021-12-07 02:20:10 +00:00
restart: unless-stopped
2021-02-09 12:00:00 +00:00
mysql:
image: mariadb:10
volumes:
- "${DOCKER_MYSQL_VOLUME:-./db-data:/var/lib/mysql}"
2021-11-27 09:08:09 +00:00
- ./tools/assets/development:/docker-entrypoint-initdb.d
2021-02-09 12:00:00 +00:00
env_file:
- .docker.env
healthcheck:
test: ["CMD-SHELL", "bash", "-c", "echo > /dev/tcp/localhost/3306"]
interval: 1s
2021-12-07 02:20:10 +00:00
restart: unless-stopped