Инициализация композ файла с запуском вп
This commit is contained in:
parent
0fa7d6ec07
commit
392a0b4620
1 changed files with 33 additions and 0 deletions
33
manufacturer/container/wordpress/docker-compose.yml
Normal file
33
manufacturer/container/wordpress/docker-compose.yml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
services:
|
||||
db:
|
||||
image: mariadb:11.6.2
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
||||
MYSQL_USER: ${MYSQL_USER}
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
|
||||
wordpress:
|
||||
image: wordpress:6.7.1-php8.3-fpm-alpine
|
||||
volumes:
|
||||
- wordpress_data:/var/www/html
|
||||
|
||||
apache:
|
||||
build:
|
||||
context: ../../../.
|
||||
dockerfile: manufacturer/container/apache/Dockerfile
|
||||
image: custom-apache:v5.2
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- wordpress_data:/var/www/html
|
||||
- ../../configs/apache/apache.conf:/etc/apache2/sites-available/000-default.conf
|
||||
depends_on:
|
||||
- wordpress
|
||||
|
||||
volumes:
|
||||
wordpress_data:
|
||||
db_data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue