diff --git a/docker-compose.yml b/docker-compose.yml index 123b2ff..eaf0343 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file + - ./data/db:/var/lib/mysql \ No newline at end of file