-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (39 loc) · 782 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (39 loc) · 782 Bytes
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
version: '3'
volumes:
data:
services:
mariadb:
container_name: php8_mariadb
image: mariadb:latest
restart: always
ports:
- '3306:3306'
volumes:
- data:/var/lib/mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=database
command: mysqld --sql_mode=""
phpadmin:
container_name: php8_phpmyadmin
image: phpmyadmin/phpmyadmin:latest
restart: always
links:
- mariadb
ports:
- '8080:80'
environment:
- PMA_ARBITRARY=1
apache:
container_name: php8_apache
build: .
restart: always
ports:
- 80:80
volumes:
- .:/var/www/html/php8_projects
depends_on:
- mariadb
links:
- mariadb