-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 1.13 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
version: '3'
services:
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
expose:
- 3306
volumes:
- "./mysql:/var/lib/mysql"
adminer:
build: ./adminer
restart: always
ports:
- 9001:8080
links:
- db
php:
build:
context: ./docker/php-fpm
args:
TIMEZONE: ${TIMEZONE}
restart: always
volumes:
- ./app:/var/www/symfony:cached
links:
- db
nginx:
build:
context: ./docker/nginx
args:
MAX_EXECUTION_TIME: ${MAX_EXECUTION_TIME}
SERVER_NAME: ${SERVER_NAME}
ports:
- 9000:80
restart: always
volumes:
- ./logs/nginx/:/var/log/nginx:cached
- ./app/public:/var/www/symfony/public:cached
depends_on:
- php