DAS_2024_1/pupkov_alexey_lab_1/docker-compose.yaml

82 lines
1.5 KiB
YAML
Raw Normal View History

2024-11-11 00:19:06 +04:00
networks:
gitea:
external: false
services:
#mediawiki
mediawiki:
image: mediawiki
restart: always
ports:
- 1337:80
links:
- mediawiki_database
volumes:
- images:/var/www/html/images
mediawiki_database:
image: mariadb
restart: always
environment:
- MYSQL_DATABASE=mywiki
- MYSQL_USER=mywiki
- MYSQL_PASSWORD=mywiki
- MYSQL_ROOT_PASSWORD=root
volumes:
- mediawiki_db:/var/lib/mysql
#wordpress
wp_db:
image: mariadb:10.6.4-focal
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- wp_db_data:/var/lib/mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=somewordpress
- MYSQL_DATABASE=wordpress
- MYSQL_USER=wordpress
- MYSQL_PASSWORD=wordpress
expose:
- 3306
- 33060
wordpress:
image: wordpress:latest
volumes:
- wp_data:/var/www/html
ports:
- 52384:80
restart: always
environment:
- WORDPRESS_DB_HOST=wp_db
- WORDPRESS_DB_USER=wordpress
- WORDPRESS_DB_PASSWORD=wordpress
- WORDPRESS_DB_NAME=wordpress
#gitea
server:
image: gitea/gitea:1.22.3
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- gitea
volumes:
- gitea:/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
volumes:
images:
mediawiki_db:
wp_db_data:
wp_data:
gitea: