-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.production.yml
43 lines (40 loc) · 1 KB
/
docker-compose.production.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
43
version: '2'
services:
db:
container_name: scinote_db_production
image: postgres:9.4
volumes:
- scinote_production_postgres:/var/lib/postgresql/data
web:
build:
context: .
dockerfile: Dockerfile.production
image: scinote_web_production
container_name: scinote_web_production
stdin_open: true
env_file: ./production.env
tty: true
depends_on:
- db
ports:
- "3000:3000"
command: bash -c "rm -f /usr/src/app/tmp/pids/server.pid && rails s -b 0.0.0.0"
environment:
- RAILS_ENV=production
volumes:
- scinote_production_files:/usr/src/app/public/system
jobs:
image: scinote_web_production
container_name: scinote_jobs_production
tty: true
depends_on:
- db
command: rake jobs:work
env_file: ./production.env
environment:
- RAILS_ENV=production
volumes:
- scinote_production_files:/usr/src/app/public/system
volumes:
scinote_production_postgres:
scinote_production_files: