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: services:
wp: wp:
<<: *default
image: wordpress:5-apache image: wordpress:5-apache
volumes: volumes:
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:ro - ./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 - ./liquet:/var/www/html/wp-content/themes/liquet:ro
ports: ports:
- 80:80 - 80:80
env_file: .env
db: db:
<<: *default
image: mariadb:10.3 image: mariadb:10.3
restart: always
volumes: volumes:
- ./data/db:/var/lib/mysql - ./data/db:/var/lib/mysql
env_file: .env