-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
51 lines (47 loc) · 1.27 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/
- ./.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:
- 8080:80
- 8443:443
php:
build:
context: .
dockerfile: ./.docker/php/Dockerfile
volumes:
- ./:/var/www/html/
depends_on:
- database
environment:
NETTE_DEBUG: 1
PHP_EXTENSION_XDEBUG: 1
PHP_EXTENSION_PGSQL: 1
PHP_EXTENSION_PDO_PGSQL: 1
PHP_EXTENSION_MYSQLI: 0
PHP_EXTENSION_GD: 1
PHP_EXTENSION_INTL: 1
STARTUP_COMMAND_1: composer install
STARTUP_COMMAND_2: NETTE_DEBUG=1 php bin/console migrations:migrate --no-interaction --allow-no-migration
STARTUP_COMMAND_3: NETTE_DEBUG=1 php bin/console doctrine:fixtures:load --no-interaction
database:
image: dockette/postgres:10
environment:
- POSTGRES_PASSWORD=contributte
- POSTGRES_USER=contributte
- POSTGRES_DB=contributte
volumes:
- .docker/data/postgres:/var/lib/postgresql/data
adminer:
image: dockette/adminer:dg
ports:
- 8080:80