Skip to content

Instantly share code, notes, and snippets.

@douglarek
Forked from niklv/docker-compose.yml
Created December 30, 2016 08:11
Show Gist options
  • Save douglarek/468c346b8203518786e99ed06e1d8660 to your computer and use it in GitHub Desktop.
Save douglarek/468c346b8203518786e99ed06e1d8660 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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment