OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/docker-compose.pullpreview.yml

31 lines
799 B

db:
image: postgres:9.4.5
environment:
POSTGRES_USER: app
POSTGRES_PASSWORD: p4ssw0rd
POSTGRES_DB: app
memory: 64
expose:
- '5432'
worker: &ruby
build: .
volumes:
- .:/usr/src/app
links:
- db
environment:
- "RAILS_CACHE_STORE=file_store"
- "DATABASE_URL=postgresql://app:p4ssw0rd@db:5432/app?encoding=utf8&pool=5&timeout=5000"
- "SECRET_KEY_BASE=d4e74f017910ac56c6ebad01165b7e1b37f4c9c02e9716836f8670cdc8d65a231e64e4f6416b19c8"
- "RAILS_ENV=production"
- "HEROKU=true"
command: "./docker/wait-for-it.sh -t 60 -h db -p 5432 --strict -- bundle exec rake db:migrate db:seed jobs:work"
memory: 384
web:
<<: *ruby
ports:
- "80:8080"
command: "./docker/wait-for-it.sh -t 60 -h db -p 5432 --strict -- ./docker/web"
memory: 1024