-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (40 loc) · 994 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
services:
apache-php83:
build:
context: .docker/apache-php83
dockerfile: Dockerfile
ports:
- "8080:80"
environment:
- APACHE_RUN_USER=www-data
- APACHE_RUN_GROUP=www-data
- DB_HOST=mariadb
- DB_USER=user
- DB_PASSWORD=password
- DB_NAME=mydb
volumes:
- ./src:/var/www/html
- ./data:/data
- ./.docker/apache-php83/vhost.conf:/etc/apache2/sites-available/000-default.conf
- ./.docker/apache-php83/php.ini:/usr/local/etc/php/php.ini
depends_on:
- mariadb
mariadb:
image: mariadb:10.5
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: mydb
MYSQL_USER: user
MYSQL_PASSWORD: password
expose:
- 3306
volumes:
- ./.docker/mariadb/data:/var/lib/mysql
adminer:
image: adminer
ports:
- "8081:8080"
depends_on:
- mariadb
environment:
- ADMINER_DEFAULT_SERVER=mariadb