Skip to content

Instantly share code, notes, and snippets.

@zx1986
Last active November 16, 2016 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zx1986/b5dbe55234752809dcd1c389f43e7e68 to your computer and use it in GitHub Desktop.
Save zx1986/b5dbe55234752809dcd1c389f43e7e68 to your computer and use it in GitHub Desktop.
Redmine with Postgresql in Docker
version: '2'
services:
redmine:
image: sameersbn/redmine:3.3.1
environment:
- TZ=Asia/Taipei
- DB_ADAPTER=mysql2
- DB_HOST=172.17.0.1
- DB_PORT=3306
- DB_USER=test
- DB_PASS=test
- DB_NAME=redmine_db
- REDMINE_PORT=10083
- REDMINE_HTTPS=false
- REDMINE_RELATIVE_URL_ROOT=
- REDMINE_SECRET_TOKEN=
- REDMINE_SUDO_MODE_ENABLED=false
- REDMINE_SUDO_MODE_TIMEOUT=15
- REDMINE_CONCURRENT_UPLOADS=2
- REDMINE_BACKUP_SCHEDULE=
- REDMINE_BACKUP_EXPIRY=
- REDMINE_BACKUP_TIME=
- SMTP_ENABLED=false
- SMTP_METHOD=smtp
- SMTP_DOMAIN=www.example.com
- SMTP_HOST=smtp.gmail.com
- SMTP_PORT=587
- SMTP_USER=mailer@example.com
- SMTP_PASS=password
- SMTP_STARTTLS=true
- SMTP_AUTHENTICATION=:login
- IMAP_ENABLED=false
- IMAP_HOST=imap.gmail.com
- IMAP_PORT=993
- IMAP_USER=mailer@example.com
- IMAP_PASS=password
- IMAP_SSL=true
- IMAP_INTERVAL=30
ports:
- "10083:80"
volumes:
- ./data:/home/redmine/data
@zx1986
Copy link
Author

zx1986 commented Oct 27, 2016

資料會顯示重複建立的錯誤,因此註解掉 postgresql 的資料庫初始化。
修正外部的 ports mapping,從 10083 port 進入 container 內部的 80 port。

@zx1986
Copy link
Author

zx1986 commented Oct 27, 2016

環境:

Docker version 1.12.1, build 23cf638

docker-compose version 1.8.0, build 94f7016

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment