-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (48 loc) · 1.08 KB
/
docker-compose.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
44
45
46
47
48
49
50
---
services:
db:
image: postgres:14-bullseye
volumes:
- type: volume
source: db
target: /var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "127.0.0.1:5432:5432"
web:
image: bops-applicants/ruby
build: docker/ruby
working_dir: /home/rails/bops-applicants
init: true
command: ["foreman", "start", "-f", "Procfile.dev"]
stdin_open: true
tty: true
depends_on:
- db
environment:
DATABASE_URL: postgres://postgres:postgres@db:5432
PROTOCOL: "http"
PORT: 3001
PIDFILE: "/tmp/pids/server.pid"
ports:
- "127.0.0.1:3001:3001"
volumes:
- type: bind
source: .
target: /home/rails/bops-applicants
- type: volume
source: bundle
target: /home/rails/bundle
- type: volume
source: node_modules
target: /home/rails/bops-applicants/node_modules
- type: tmpfs
target: /tmp/pids
tmpfs:
mode: 0777
volumes:
db:
bundle:
node_modules: