-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.21 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
50
51
version: '3.4'
services:
nginx:
build:
context: .
dockerfile: ./.docker/nginx/Dockerfile
volumes:
- ./:/var/www/html:cached
- ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./.docker/nginx/sites/:/etc/nginx/sites-available
- ./.docker/nginx/conf.d/:/etc/nginx/conf.d
depends_on:
- php
ports:
- "4444:80"
- "4443:443"
php:
build:
context: .
dockerfile: ./.docker/php/Dockerfile
#volumes:
# - ./:/var/www/html:cached
depends_on:
- mariadb
environment:
NETTE_DEBUG: 1
PHP_EXTENSION_XDEBUG: 1
PHP_EXTENSION_MYSQLI: 1
STARTUP_COMMAND_1: composer install
STARTUP_COMMAND_2: NETTE_DEBUG=1 php bin/console migrations:migrate --no-interaction
STARTUP_COMMAND_3: NETTE_DEBUG=1 php bin/console doctrine:fixtures:load --no-interaction
tty: true
mariadb:
image: mariadb:10.4
environment:
- MARIADB_ROOT_PASSWORD=sntroot
- MARIADB_PASSWORD=sntpwd
- MARIADB_USER=sntuser
- MARIADB_DATABASE=sntdb
ports:
- 4446:3306
adminer:
image: dockette/adminer:dg
ports:
- 4445:80
environment:
WORKERS: 1
PHP_CLI_SERVER_WORKERS: 1