-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (34 loc) · 907 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '3.5'
services:
php:
build:
context: ./docker/php
container_name: sfproject_php
volumes:
- .:/var/www/html:delegated
- ../../.composer:/var/www/.composer
working_dir: /var/www/html
nginx:
image: nginx:1.11.10
container_name: sfproject_nginx
depends_on:
- php
ports:
- 80:80
volumes:
- .:/var/www/html:delegated
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
mariadb:
image: mariadb:10.5.5
command: 'mysqld --innodb-flush-method=fsync' # --innodb-use-native-aio=0
restart: always
container_name: sfproject_mariadb
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
ports:
- 3306:3306
volumes:
- ./docker/mariadb:/var/lib/mysql