-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
63 lines (59 loc) · 1.54 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
52
53
54
55
56
57
58
59
60
61
62
63
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:
- "8000:80"
- "8443:443"
php:
build:
context: .
dockerfile: ./.docker/php/Dockerfile
volumes:
- ./:/var/www/html:cached
depends_on:
- postgres
- mariadb
environment:
NETTE_DEBUG: 1
PHP_EXTENSION_XDEBUG: 1
PHP_EXTENSION_PGSQL: 1
PHP_EXTENSION_PDO_PGSQL: 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
postgres:
image: dockette/postgres:13
environment:
- POSTGRES_PASSWORD=contributte
- POSTGRES_USER=contributte
- POSTGRES_DB=contributte
volumes:
- .docker/data/postgres:/var/lib/postgresql/data
ports:
- 5432:5432
mariadb:
image: mariadb:10.4
environment:
- MARIADB_ROOT_PASSWORD=contributte
- MARIADB_PASSWORD=contributte
- MARIADB_USER=contributte
- MARIADB_DATABASE=contributte
volumes:
- .docker/data/mysql:/var/lib/mysql
ports:
- 3306:3306
adminer:
image: dockette/adminer:dg
ports:
- 8080:80