mirror of
https://github.com/cupcakearmy/liquet.git
synced 2024-12-23 00:26:25 +00:00
optimize docker-compose file
This commit is contained in:
parent
f11c180662
commit
4d92b206a8
@ -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
|
|
Loading…
Reference in New Issue
Block a user