Skip to content

Instantly share code, notes, and snippets.

@Nick0603
Last active May 21, 2020 17:28
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 Nick0603/7f1811d51995a7dfdf824987f3560335 to your computer and use it in GitHub Desktop.
Save Nick0603/7f1811d51995a7dfdf824987f3560335 to your computer and use it in GitHub Desktop.
version: '3.3'
services:
db:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8 --collation-server=utf8_general_ci
container_name: redmine-mysql
restart: always
environment:
MYSQL_DATABASE: my_redmine
MYSQL_USER: admin
MYSQL_PASSWORD: admin_password
MYSQL_ROOT_PASSWORD: password
volumes:
- ./redmine/mysql:/var/lib/mysql
ports:
- "3306:3306"
networks:
- net-mysql
redmine:
image: bitnami/redmine:latest
container_name: redmine
restart: always
depends_on:
- db
ports:
- "80:3000"
environment:
REDMINE_DB_MYSQL: db
REDMINE_DB_NAME: my_redmine
REDMINE_DB_USERNAME: admin
REDMINE_DB_PASSWORD: admin_password
REDMINE_EMAIL: redmine@example.com
SMTP_HOST: smtp.gmail.com
SMTP_PORT: 587
SMTP_USER: <email_account>
SMTP_PASSWORD: <email_password>
volumes:
- ./redmine/redmine_file:/home/redmine/data
networks:
- net-mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: redmine-phpmyadmin
restart: always
depends_on:
- db
ports:
- "8080:80"
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: "password"
networks:
- net-mysql
networks:
net-mysql:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment