optimize docker-compose file

This commit is contained in:
cupcakearmy 2019-05-21 15:28:14 +02:00
parent f11c180662
commit 4d92b206a8

View File

@ -1,7 +1,12 @@
version: '3'
version: '3.7'
x-default: &default
restart: always
env_file: .env
services:
wp:
<<: *default
image: wordpress:5-apache
volumes:
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:ro
@ -9,11 +14,9 @@ services:
- ./liquet:/var/www/html/wp-content/themes/liquet:ro
ports:
- 80:80
env_file: .env
db:
<<: *default
image: mariadb:10.3
restart: always
volumes:
- ./data/db:/var/lib/mysql
env_file: .env
- ./data/db:/var/lib/mysql