forked from opf/openproject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.pullpreview.yml
42 lines (40 loc) · 1.11 KB
/
docker-compose.pullpreview.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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"
- "HEROKU=true"
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"
- "HEROKU=true"
env_file: ./.env.pullpreview
command: "./docker/worker --seed --set attachment_max_size=262144"
volumes_from:
- web