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

57 lines
1.1 KiB
YAML
Raw Normal View History

2021-02-09 12:00:00 +00:00
version: '2.4'
volumes:
mysql_data:
services:
2021-04-16 12:16:07 +00:00
proxy:
image: jwilder/nginx-proxy
ports:
- 80:80
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
2021-02-09 12:00:00 +00:00
nginx:
image: nginx:1-alpine
working_dir: /app
volumes:
- ./:/app
- ./tools/docker/images/nginx/configs/vhost.conf:/etc/nginx/conf.d/default.conf
depends_on:
node:
condition: service_started
php:
condition: service_started
2021-04-16 12:16:07 +00:00
environment:
VIRTUAL_HOST: oliverdavies.localhost
2021-02-09 12:00:00 +00:00
php:
build:
context: .
dockerfile: tools/docker/Dockerfile
target: dev
volumes:
- ./:/app
env_file:
- .docker.env
depends_on:
mysql:
condition: service_healthy
mysql:
image: mariadb:10
volumes:
- mysql_data:/var/lib/mysql
- ./tools/docker/images/mysql/databases.sql:/docker-entrypoint-initdb.d/databases.sql
env_file:
- .docker.env
healthcheck:
test: ["CMD-SHELL", "bash", "-c", "echo > /dev/tcp/localhost/3306"]
interval: 1s
node:
image: node:12
working_dir: /node
volumes:
- ./web:/node