-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
30 lines (29 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
version: '3.7'
services:
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- '8001:80'
environment:
PMA_HOST: wp-data-database
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: main
networks:
- wpdata
database:
container_name: wp-data-database
image: 'mariadb:10.5'
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: main
ports:
# To allow the host machine to access the ports below, modify the lines below.
# For example, to allow the host to connect to port 3306 on the container, you would change
# "3306" to "3306:3306". Where the first port is exposed to the host and the second is the container port.
# See https://docs.docker.com/compose/compose-file/#ports for more information.
- '3306:3306'
networks:
- wpdata
networks:
wpdata: