forked from 18F/content-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 759 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 759 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: '2'
services:
app:
build: .
working_dir: /content-guide
command: bash -c 'bundle install && jekyll serve --force_polling -H 0.0.0.0 -P 4000'
stop_signal: SIGKILL
ports:
- 4000:4000
volumes:
- .:/content-guide
- root:/root/
- bundle:/usr/local/bundle/
ruby: &RUBY # This command is out of order to aid with config reuse
# image: ruby:2.1.5
image: starefossen/ruby-node
volumes:
- $PWD:/usr/src/app
working_dir: /usr/src/app
stdin_open: true
tty: true
#---- Commands ----
ci_build:
user: root
<<: *RUBY
environment:
LANG: C.UTF-8
entrypoint: sh -c "npm install uglifyify && gem install bundler && ./go ci_build"
volumes:
root:
bundle: