-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·53 lines (49 loc) · 1.21 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
version: "3.8"
networks:
default:
name: ${APP_NAME}-network
driver: bridge
services:
php-apache:
build: ./docker/php-apache
image: ${APP_NAME}-php-apache
container_name: ${APP_NAME}-php-apache
restart: always
ports:
- 80:80
volumes:
- ./www:/var/www
- ./docker/php-apache/000-default.conf:/etc/apache2/sites-available/000-default.conf
- ./docker/php-apache/logs:/var/log/apache2
networks:
- default
mariadb:
image: mariadb
container_name: ${APP_NAME}-mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
MYSQL_DATABASE: ${DB_NAME}
ports:
- 3306:3306
volumes:
- ./docker/mariadb/data:/var/lib/mysql
- ./docker/mariadb/dump:/docker-entrypoint-initdb.d
networks:
- default
dbadmin:
image: phpmyadmin/phpmyadmin
container_name: ${APP_NAME}-dbadmin
restart: always
environment:
PMA_HOST: mariadb
PMA_USER: root
PMA_PASSWORD: ${DB_ROOT_PASS}
ports:
- 8080:80
depends_on:
- mariadb
networks:
- default