wordpress/docker-compose.yml

36 lines
685 B
YAML
Raw Normal View History

2020-05-19 14:03:42 +00:00
version: '3.3'
volumes:
db_data:
external:
name: db_data
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: $MYSQL_PASSWORD
wordpress:
depends_on:
- db
image: wordpress:latest
links:
- db
ports:
- 80:80
restart: unless-stopped
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: $MYSQL_PASSWORD
volumes:
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini