Skip to content

Commit 3abe8ff

Browse files
committed
Adding sample compose config
1 parent ffe9e47 commit 3abe8ff

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docker-compose.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: '3.5'
2+
services:
3+
web:
4+
container_name: ruby-lang
5+
image: ruby:2.6.1
6+
environment:
7+
- RAILS_ENV=development
8+
command: >
9+
sh -c "bundle check || bundle install --without production &&
10+
bundle exec rake build &&
11+
bundle exec rake serve"
12+
volumes:
13+
- .:/www.ruby-lang.org
14+
- bundle_cache:/usr/local/bundle
15+
working_dir: /www.ruby-lang.org
16+
ports:
17+
- 9292:9292
18+
network_mode: host
19+
20+
volumes:
21+
bundle_cache:
22+
name: ruby-lang-bundle

0 commit comments

Comments
 (0)