Skip to content

Instantly share code, notes, and snippets.

@niklv
Last active August 11, 2021 07:12
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save niklv/a950869f99fe0e1ae1be9cd615e1bfc3 to your computer and use it in GitHub Desktop.
Save niklv/a950869f99fe0e1ae1be9cd615e1bfc3 to your computer and use it in GitHub Desktop.
docker redmine postgresql
services:
web:
image: 'redmine:passenger'
container_name: 'redmine_web'
restart: always
ports:
- '3000:3000'
links:
- postgres
environment:
POSTGRES_PORT_5432_TCP: 5432
POSTGRES_ENV_POSTGRES_USER: redmine
POSTGRES_ENV_POSTGRES_PASSWORD: pswd
volumes:
- '/srv/redmine/files/:/usr/src/redmine/files/'
- '/srv/redmine/config/configuration.yml:/usr/src/redmine/config/configuration.yml'
postgres:
image: 'postgres'
container_name: 'redmine_db'
restart: always
environment:
POSTGRES_PASSWORD: pswd
POSTGRES_USER: redmine
volumes:
- '/srv/postgres/:/var/lib/postgresql/data'
ports:
- '5432:5432'
@niklv
Copy link
Author

niklv commented Apr 11, 2016

With mariadb has error, cause redmine/3.2/docker-entrypoint.sh dont specify encoding for mysql.

@niklv
Copy link
Author

niklv commented Apr 11, 2016

Switch to postgres.

@nikita19
Copy link

nikita19 commented May 4, 2016

Hey, can u share link to your Dockerfile? Spent several days trying to make my own container.
Thanks

@thiagorider
Copy link

Can you share your configuration.yml ?

@niklv
Copy link
Author

niklv commented May 10, 2016

@nikita19 yep)
@thiagorider there are no significant changes in configuration.yml (only add connection settings to my company smtp server)

@thiagorider
Copy link

@niklv thx!

@shtirlic
Copy link

In your redmine_web you are linking to the postgres, but your DB container named redmine_db is this ok?

@niklv
Copy link
Author

niklv commented Jul 28, 2016

@shtirlic yes

@replay111
Copy link

Hi,

any idea what is wrong:

docker-compose up --build
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services: 'web'

@replay111
Copy link

version: '2' - misssing that line was the problem :D

@tredence123
Copy link

@niklv, can it be used for multi users?. I need to host redmine to use it for my organization.

@niklv
Copy link
Author

niklv commented Feb 17, 2017

@replay111 yay!
@tejas1493 I use that config for company with 10+ emploee.

@tiryu
Copy link

tiryu commented May 3, 2017

@niklv Hi, did you manage to reverse proxy your redmine server or your users have to access by http://yourserverip:3000/ ?
If you "reversed proxy" redmine, can you share your nginx.conf please ?
I've still some issue on location and sharing css/js... thank you !

@niklv
Copy link
Author

niklv commented May 7, 2017

@tiryu it was on my previous work. As I remember I just configured simple proxypass.

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