mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
5f45ee07ab
* Move development docker-compose file to the main directory This requires us to move some other files around, like the pullpreview and example docker-compose file for production setups. This commit also does some housekeeping, like removing some old files and deduping configuration. * Updated to selenium grid * Fix in-Docker Selenium tests The Selenium tests now run inside a Docker Chrome Container. Backwards compatability with non-docker setups is not guaranteed, though it should not be hard to implement with a couple of small fixes. * Updated docker development documentation * Improved test timings, changed the documentation * Updated docker testing again * Run npm in the frontend directory * Really run npm in the frontend directory * Also run npm in frontend when setting up travis cache * Change directory for one command only * Change default test driver name * CI test change fixes * Fixed syntax error * Added dev check * Trying to fix firefox resizing * Trying to get tests running * Stop resizing firefox * Fixed apple icon spec * fix host in url helpers for omniauth spec * Fix omniauth specs * Fix docs * Small fixes to docker tests * Added package.json back in * Change env variables Co-authored-by: Markus Kahl <machisuji@gmail.com>
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
db:
|
|
image: postgres:9.6.3
|
|
environment:
|
|
POSTGRES_USER: app
|
|
POSTGRES_PASSWORD: p4ssw0rd
|
|
POSTGRES_DB: app
|
|
volumes:
|
|
- /var/lib/postgresql/data
|
|
expose:
|
|
- '5432'
|
|
|
|
web:
|
|
build: .
|
|
links:
|
|
- db
|
|
environment:
|
|
- "RAILS_CACHE_STORE=file_store"
|
|
- "DATABASE_URL=postgresql://app:p4ssw0rd@db:5432/app?encoding=utf8&pool=5&timeout=5000&reconnect=true"
|
|
- "SECRET_KEY_BASE=d4e74f017910ac56c6ebad01165b7e1b37f4c9c02e9716836f8670cdc8d65a231e64e4f6416b19c8"
|
|
- "RAILS_ENV=production"
|
|
env_file: ./.env.pullpreview
|
|
ports:
|
|
- "80:8080"
|
|
command: "./docker/web"
|
|
volumes:
|
|
- "/var/openproject/assets"
|
|
|
|
worker:
|
|
build: .
|
|
links:
|
|
- db
|
|
environment:
|
|
- "RAILS_CACHE_STORE=file_store"
|
|
- "DATABASE_URL=postgresql://app:p4ssw0rd@db:5432/app?encoding=utf8&pool=5&timeout=5000&reconnect=true"
|
|
- "SECRET_KEY_BASE=d4e74f017910ac56c6ebad01165b7e1b37f4c9c02e9716836f8670cdc8d65a231e64e4f6416b19c8"
|
|
- "RAILS_ENV=production"
|
|
env_file: ./.env.pullpreview
|
|
command: "./docker/worker --seed --set attachment_max_size=262144,host_name=${PULLPREVIEW_PUBLIC_DNS}"
|
|
volumes_from:
|
|
- web
|