Permalink
Find file Copy path
1478e6b Oct 9, 2017
1 contributor

Users who have contributed to this file

45 lines (43 sloc) 837 Bytes
## threenine.co.uk WordPress docker compose
version: '2'
services:
wordpress:
depends_on:
- db
image: wordpress:latest
restart: always
volumes:
- ./wp-content:/var/www/html/wp-content
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_PASSWORD: password12@
ports:
- 80:80 # Expose http and https
- 443:443
networks:
- back
db:
image: mysql:5.7
restart: always
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: password12@
networks:
- back
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
restart: always
ports:
- 8080:80
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: password12@
networks:
- back
networks:
back:
volumes:
db_data: