You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
987 B

3 years ago
version: "3.8"
services:
nginx:
image: nginx:latest
ports:
- "127.0.0.1:8081:80"
volumes:
- ./:/var/www/app
- ./docker/nginx/app.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
networks:
wunschnet:
php:
build: docker/php-fpm
working_dir: /var/www/app
volumes:
- ./:/var/www/app
networks:
wunschnet:
mysql:
image: mariadb:10.6.4
environment:
MYSQL_ROOT_PASSWORD: weihnachten
MYSQL_DATABASE: weihnachten
MYSQL_USER: weihnachten
MYSQL_PASSWORD: weihnachten
volumes:
- ./docker/mysql/data/:/var/lib/mysql
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u root --password=$$MYSQL_ROOT_PASSWORD
interval: 5s
retries: 10
networks:
wunschnet:
networks:
wunschnet: