iteo/docker-compose.yaml
2024-04-14 15:47:41 +02:00

35 lines
606 B
YAML

services:
nginx:
image: nginx:latest
depends_on:
- symfony
ports:
- "80:80"
volumes:
- ./docker/nginx:/etc/nginx/conf.d
- ./:/var/www
symfony:
build:
context: ./
dockerfile: Dockerfile
command: ["php-fpm"]
volumes:
- ./:/var/www
mariadb:
image: mariadb:10.7
restart: unless-stopped
ports:
- "3306:3306"
environment:
- MYSQL_USER=iteo
- MYSQL_PASSWORD=iteo
- MYSQL_DATABASE=iteo
- MARIADB_RANDOM_ROOT_PASSWORD=1
volumes:
- mysql_data:/var/lib/mysql
volumes:
mysql_data: