DAS_2023_1/romanova_adelina_lab_1/docker-compose.yml

65 lines
1.5 KiB
YAML

version: "3"
services:
mysql:
image: mysql
container_name: my-mysql-container
restart: always
environment:
MYSQL_DATABASE: my_wiki
MYSQL_USER: wiki_user
MYSQL_PASSWORD: my_secret_password
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
volumes:
- ./data:/var/lib/mysql
drupal:
depends_on:
- mysql
image: drupal
container_name: my-drupal-container
ports:
- 8084:80
volumes:
- ./drupal-modules:/var/www/html/modules
- ./drupal-profiles:/var/www/html/profiles
- ./drupal-themes:/var/www/html/themes
environment:
- DRUPAL_DB_HOST=mysql
- DRUPAL_DB_USER=wiki_user
- DRUPAL_DB_PASSWORD=my_secret_password
- DRUPAL_DB_NAME=my_wiki
gitea:
depends_on:
- mysql
image: gitea/gitea
container_name: my-gitea-container
ports:
- 8085:3000
volumes:
- ./gitea:/data
environment:
- USER_UID=1000
- USER_GID=1000
- DB_TYPE=mysql
- DB_HOST=mysql:3306
- DB_NAME=my_wiki
- DB_USER=wiki_user
- DB_PASSWORD=my_secret_password
- ROOT_URL=http://localhost:8085
wordpress:
depends_on:
- mysql
image: wordpress
container_name: my-wordpress-container
ports:
- 8086:80
volumes:
- ./wp-content:/var/www/html/wp-content
environment:
- WORDPRESS_DB_HOST=mysql
- WORDPRESS_DB_USER=wiki_user
- WORDPRESS_DB_PASSWORD=my_secret_password
- WORDPRESS_DB_NAME=my_wiki