initial commit
This commit is contained in:
42
docker-compose.yml
Normal file
42
docker-compose.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
services:
|
||||
db:
|
||||
image: mariadb:10.11
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_DATABASE: wordpress
|
||||
MYSQL_USER: wp
|
||||
MYSQL_PASSWORD: example
|
||||
MYSQL_ROOT_PASSWORD: example_root
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
|
||||
php-fpm:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/7.4/Dockerfile
|
||||
image: local/auvem-php:7.4
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./wp_root:/var/www/html:rw
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db:3306
|
||||
WORDPRESS_DB_USER: wp
|
||||
WORDPRESS_DB_PASSWORD: example
|
||||
WORDPRESS_DB_NAME: wordpress
|
||||
# Enable chown-on-start if you want the container to fix host mounts
|
||||
# CHOWN_ON_START=1
|
||||
|
||||
nginx:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/nginx/Dockerfile
|
||||
image: local/auvem-nginx:latest
|
||||
ports:
|
||||
- "8080:80"
|
||||
depends_on:
|
||||
- php-fpm
|
||||
volumes:
|
||||
- ./wp_root:/var/www/html:ro
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
Reference in New Issue
Block a user