docker-wordpress-universal/docker-compose.yml

34 lines
552 B
YAML
Raw Normal View History

2021-03-17 00:09:04 +01:00
version: '3'
volumes:
db:
data:
services:
db:
image: mariadb
restart: always
volumes:
- db:/var/lib/mysql
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_RANDOM_ROOT_PASSWORD: '1'
MYSQL_PASSWORD: wordpress
wordpress:
build: .
volumes:
- data:/app/wordpress
restart: always
nginx:
image: nginx:alpine
ports:
- 8180:80
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
volumes_from:
- wordpress
restart: always