3snet.test/docker-compose.yml

45 lines
890 B
YAML
Raw Normal View History

2022-01-08 13:15:26 +01:00
version: '3'
services:
mysql:
image: mysql:8.0.22
container_name: mysql
restart: always
volumes:
- ./var/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: app
MYSQL_USER: app
MYSQL_PASSWORD: password
ports:
- "3306:3306"
nginx:
image: nginx:stable
container_name: nginx
restart: always
volumes:
- ./:/app
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
links:
- php-fpm
php-fpm:
build: docker/php-fpm
restart: always
container_name: php-fpm
volumes:
- ./:/app
2024-10-05 05:18:21 +02:00
- ./docker/php-fpm/php.ini:/usr/local/etc/php/php.ini:ro
- ./docker/php-fpm/supervisord.conf:/etc/supervisord.conf:ro
2022-01-08 13:15:26 +01:00
links:
- mysql
volumes:
###> doctrine/doctrine-bundle ###
db-data:
###< doctrine/doctrine-bundle ###