-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
34 lines (32 loc) · 992 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
version: '3'
services:
db:
image: mysql:5.7
env_file: docker.env
volumes:
# Here we’re telling the db container to look in that data folder for a .sql export
# and to use it to populate our database.
- ./data:/docker-entrypoint-initdb.d
restart: always # always restart the container after reboot
ports:
- "3306:3306"
wordpress: # name of our wordpress container
depends_on: # container dependencies that need to be running first
- db
image: wordpress:latest # image used by our container
ports:
- "1973:80" # setting our ports for networking
restart: always
env_file: docker.env
volumes: # this is where we tell Docker what to pay attention to
- ./wp-content:/var/www/html/wp-content # mapping our custom theme to the container
myadmin:
env_file: docker.env
image: phpmyadmin/phpmyadmin:4.8.1
ports:
- "8080:80"
restart: always
links:
- db
depends_on:
- db