-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (40 loc) · 892 Bytes
/
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
version: '3'
services:
php_symfony63_app:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/var/www
depends_on:
- database
nginx:
image: nginx:latest
ports:
- "9000:80"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- .:/var/www
depends_on:
- php_symfony63_app
database:
image: mariadb:${MARIADB_VERSION:-10.6}
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE:-app}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root}
MYSQL_USER: ${MYSQL_USER:-app}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-app}
ports:
- "3306:3306"
volumes:
- database_data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: database
PMA_PORT: 3306
PMA_ARBITRARY: 1
ports:
- "8080:80"
volumes:
database_data: