-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 848 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 848 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
33
34
35
36
37
version: '3.7'
services:
web:
build: .
volumes: &web-volumes
- &app-volume .:/task_manager:cached
- ~/.ssh:/root/.ssh
- ~/.bash_history:/root/.bash_history
- &bundle-cache-volume bundle_cache:/bundle_cache
ports:
- 3000:3000
- 3001:3001
- 3002:3002
depends_on:
- db
environment: &web-environment
BUNDLE_PATH: /bundle_cache
GEM_HOME: /bundle_cache
GEM_PATH: /bundle_cache
RAILS_PORT: 3000
RUBYOPT: -W:no-deprecated -W:no-experimental
DATABASE_HOST: db
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
command: bundle exec rails s -b '0.0.0.0' -p 3000
db:
image: postgres:11.4
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
bundle_cache: