jenkins/docker/compose.yml
2024-11-13 18:40:25 +09:00

148 lines
3.5 KiB
YAML

services:
jenkins1:
build:
dockerfile: Dockerfile.jenkins
container_name: jenkins1
restart: always
ports:
- "8081:8080"
volumes:
- jenkins_home1:/var/jenkins_home
- ./init.groovy.d:/var/jenkins_home/init.groovy.d
environment:
- JENKINS_USER=admin
- JENKINS_PASS=password
- TZ=Asia/Tokyo
networks:
- jenkins_network
jenkins2:
build:
dockerfile: Dockerfile.jenkins
container_name: jenkins2
restart: always
ports:
- "8082:8080"
volumes:
- jenkins_home2:/var/jenkins_home
- ./init.groovy.d:/var/jenkins_home/init.groovy.d
environment:
- JENKINS_USER=admin
- JENKINS_PASS=password
- TZ=Asia/Tokyo
networks:
- jenkins_network
jenkins3:
build:
dockerfile: Dockerfile.jenkins
container_name: jenkins3
restart: always
ports:
- "8083:8080"
volumes:
- jenkins_home3:/var/jenkins_home
- ./init.groovy.d:/var/jenkins_home/init.groovy.d
environment:
- JENKINS_USER=admin
- JENKINS_PASS=password
- TZ=Asia/Tokyo
networks:
- jenkins_network
jenkins4:
build:
dockerfile: Dockerfile.jenkins
container_name: jenkins4
restart: always
ports:
- "8084:8080"
volumes:
- jenkins_home4:/var/jenkins_home
- ./init.groovy.d:/var/jenkins_home/init.groovy.d
environment:
- JENKINS_USER=admin
- JENKINS_PASS=password
- TZ=Asia/Tokyo
networks:
- jenkins_network
jenkins5:
build:
dockerfile: Dockerfile.jenkins
container_name: jenkins5
restart: always
ports:
- "8085:8080"
volumes:
- jenkins_home5:/var/jenkins_home
- ./init.groovy.d:/var/jenkins_home/init.groovy.d
environment:
- JENKINS_USER=admin
- JENKINS_PASS=password
- TZ=Asia/Tokyo
networks:
- jenkins_network
gitea:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=sqlite3
- GITEA__database__PATH=/data/gitea/gitea.db
- GITEA__server__ROOT_URL=http://192.168.36.39:3000/
- GITEA__service__ALLOW_ONLY_EXTERNAL_REGISTRATION=false
- GITEA__service__DISABLE_REGISTRATION_EMAIL_CONFIRMATION=true
- GITEA__webhook__ALLOWED_HOST_LIST=192.168.36.39
- TZ=Asia/Tokyo
ports:
- "3000:3000"
- "2222:22"
volumes:
- ./volume/gitea_data:/data
networks:
- jenkins_network
mattermost:
image: mattermost/mattermost-team-edition:latest
container_name: mattermost
environment:
- MM_SQLSETTINGS_DRIVERNAME=mysql
- MM_SQLSETTINGS_DATASOURCE=mattermost:mattermost@tcp(mysql:3306)/mattermost?charset=utf8mb4,utf8&readTimeout=30s&writeTimeout=30s
- MM_SERVICESETTINGS_SITEURL=http://192.168.36.39:4000
- MM_SERVICESETTINGS_DEFAULTLOCALE=ja
- MM_EMAILSETTINGS_REQUIREEMAILVERIFICATION=false
- TZ=Asia/Tokyo
ports:
- "4000:8065"
volumes:
- ./volume/mattermost_data:/mattermost/data
networks:
- jenkins_network
mysql:
image: mysql:8.0
container_name: mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=mattermost
- MYSQL_USER=mattermost
- MYSQL_PASSWORD=mattermost
- TZ=Asia/Tokyo
volumes:
- ./volume/mysql_data:/var/lib/mysql
networks:
- jenkins_network
volumes:
jenkins_home1:
jenkins_home2:
jenkins_home3:
jenkins_home4:
jenkins_home5:
networks:
jenkins_network: