forked from jasperweyne/helpless-kiwi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.01 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.8'
services:
database:
image: mariadb:10.7
container_name: kiwi_database-dev
restart: on-failure
environment:
MARIADB_DATABASE: kiwi_dev
MARIADB_USER: root
MARIADB_PASSWORD: root
MARIADB_ROOT_PASSWORD: root
volumes:
- db-data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: kiwi_phpmyadmin-dev
depends_on:
- database
restart: on-failure
environment:
PMA_HOST: database
ports:
- "8080:80"
php:
image: php:dev
container_name: kiwi_symfony-dev
depends_on:
- database
build:
context: .
restart: on-failure
environment:
APP_ENV: dev
APP_DEBUG: 1
SECURE_SCHEME: http
DATABASE_URL: mysql://root:root@database/kiwi_dev
ENV COMPOSER_ALLOW_SUPERUSER: 1
PHP_DATE_TIMEZONE: ${PHP_DATE_TIMEZONE:-UTC}
PHP_IDE_CONFIG: serverName=localhost
volumes:
- .:/app:rw,cached
ports:
- "8000:8000"
volumes:
db-data: