mirror of
https://github.com/cupcakearmy/wordpress-template.git
synced 2024-10-09 15:55:25 +02:00
34 lines
649 B
YAML
Executable File
34 lines
649 B
YAML
Executable File
version: "3.7"
|
|
|
|
x-default: &default
|
|
restart: unless-stopped
|
|
env_file: ./config/.env
|
|
|
|
services:
|
|
nginx:
|
|
image: nginx:alpine
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- wordpress
|
|
volumes:
|
|
- ./config/nginx:/etc/nginx/conf.d
|
|
- ./data/wp:/var/www/html
|
|
ports:
|
|
- 80:80
|
|
|
|
wordpress:
|
|
<<: *default
|
|
build: ./config/wp
|
|
volumes:
|
|
- ./config/wp/custom.conf:/usr/local/etc/php-fpm.d/custom.conf
|
|
- ./data/wp:/var/www/html
|
|
- ./theme:/var/www/html/wp-content/themes/theme:ro
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
<<: *default
|
|
image: mariadb:10
|
|
volumes:
|
|
- ./data/db:/var/lib/mysql
|