forked from sendchinatownlove/ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
32 lines (31 loc) · 803 Bytes
/
docker-compose.yaml
File metadata and controls
32 lines (31 loc) · 803 Bytes
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
version: '3'
services:
db:
image: postgres
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_HOST_AUTH_METHOD=trust
# NOTE: You will need to update config/database.yml file as well with the value for POSTGRES_USER as well
- POSTGRES_USER=postgres
volumes:
- postgres-data-volume:/var/lib/postgresql/data
ports:
- 5432:5432
web:
build: .
# command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
command: bash docker_bootstrap.sh
environment:
DB_HOST: db
RACK_ENV: development
RAILS_ENV: development
PORT: 5000
volumes:
- .:/myapp
ports:
- "5000:5000"
depends_on:
- db
volumes:
postgres-data-volume:
external: true