🦁
DockerDesktopでGitlab+nextcloud+redmine+wekan+wikijs構築したのでメモ
GitLab
version: '3.6'
services:
gitlab:
container_name: 'gitlab-ce'
image: 'gitlab/gitlab-ce:latest'
restart: unless-stopped
ports:
- '9080:80'
- '9022:22'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://192.168.10.200:9080'
gitlab_rails['gitlab_shell_ssh_port'] = 9022
nginx['listen_port'] = 80
volumes:
- 'F:\DockerProject\gitlab\config:/etc/gitlab'
- 'F:\DockerProject\gitlab\logs:/var/log/gitlab'
- 'F:\DockerProject\gitlab\data:/var/opt/gitlab'
shm_size: '256m'
※root
ユーザーのパスワードは/etc/gitlab/initial_root_password
に記載されている。24時間後にファイルが消えるので注意。
nextcloud
version: "3"
services:
mysql-nextcloud:
image: mysql:8.0.34
container_name: mysql-nextcloud
restart: unless-stopped
volumes:
- 'F:\DockerProject\nextcloud\mysql-data:/var/lib/mysql'
environment:
- MYSQL_ROOT_PASSWORD=nextcloud
- MYSQL_PASSWORD=nextcloud
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
nextcloud:
image: nextcloud
container_name: nextcloud
restart: unless-stopped
ports:
- 9480:80
depends_on:
- mysql-nextcloud
volumes:
- 'F:\DockerProject\nextcloud\nextcloud-html:/var/www/html'
redmine
version: '3.9'
services:
redmine:
image: redmine:passenger
container_name: redmine
ports:
- 9300:3000
environment:
TZ: Asia/Tokyo
REDMINE_DB_MYSQL: mysql-redmine
REDMINE_DB_DATABASE: redmine
REDMINE_DB_USERNAME: redmine
REDMINE_DB_PASSWORD: redmine
REDMINE_DB_ENCODING: utf8
depends_on:
- mysql-redmine
restart: unless-stopped
volumes:
- 'F:\DockerProject\redmine\redmine-files:/usr/src/redmine/files'
- 'F:\DockerProject\redmine\redmine-log:/usr/src/redmine/log'
- 'F:\DockerProject\redmine\redmine-plugins:/usr/src/redmine/plugins'
- 'F:\DockerProject\redmine\redmine-themes:/usr/src/redmine/public/themes'
mysql-redmine:
image: mysql:5.7
container_name: mysql-redmine
restart: unless-stopped
environment:
TZ: Asia/Tokyo
MYSQL_ROOT_PASSWORD: devops
MYSQL_DATABASE: redmine
MYSQL_USER: redmine
MYSQL_PASSWORD: redmine
volumes:
- 'F:\DockerProject\redmine\mysql-data:/var/lib/mysql'
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci
※初期ID/Passはadmin
となっているので初回ログイン時に変更を促される
wekan
version: "3"
services:
wekan:
image: wekanteam/wekan
container_name: wekan
restart: unless-stopped
depends_on:
- mongo-wekan
- postfix-wekan
environment:
- MONGO_URL=mongodb://mongo-wekan/wekan
- ROOT_URL=http://192.168.10.200:9480
- MAIL_URL=smtp://wekan:wekan@postfix-wekan:25/?ignoreTLS=true
ports:
- 9480:8080
mongo-wekan:
image: mongo:6.0.9
container_name: mongo-wekan
restart: unless-stopped
volumes:
- 'F:\DockerProject\wekan\mongo-data:/data/db'
postfix-wekan:
image: marvambass/versatile-postfix
container_name: postfix-wekan
restart: unless-stopped
volumes:
- 'F:\DockerProject\wekan\postfix-dkim:/etc/postfix/dkim/'
- 'F:\DockerProject\wekan\postfix-mail:/var/mail'
command: wekan.com wekan:wekan
environment:
- ALIASES=postmaster:root;hostmaster:root;webmaster:root
※最初のユーザー登録したアカウントが管理者になるらしい
※メールは送るがGmailでは弾かれる
wikijs
version: "3"
services:
postgres-wikijs:
image: postgres:15-alpine
container_name: postgres-wikijs
environment:
POSTGRES_DB: wiki
POSTGRES_PASSWORD: wikijsrocks
POSTGRES_USER: wikijs
logging:
driver: "none"
restart: unless-stopped
volumes:
- 'F:\DockerProject\wikijs\db-data:/var/lib/postgresql/data'
wikijs:
image: ghcr.io/requarks/wiki:2
container_name: wikijs
depends_on:
- postgres-wikijs
environment:
DB_TYPE: postgres
DB_HOST: postgres-wikijs
DB_PORT: 5432
DB_USER: wikijs
DB_PASS: wikijsrocks
DB_NAME: wiki
restart: unless-stopped
ports:
- "9380:3000"
Discussion