-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (32 loc) · 833 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (32 loc) · 833 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
---
# Docker Compose 2.4 is for local development
# https://www.heroku.com/podcasts/codeish/57-discussing-docker-containers-and-kubernetes-with-a-docker-captain - Source on that.
version: '2.4'
x-app: &app
image: typo-ci-spelling-action:latest
mem_limit: 512m
build:
context: .
dockerfile: Dockerfile
target: development
environment:
RAILS_LOG_TO_STDOUT: enabled
working_dir: /usr/src/app
volumes:
- .:/usr/src/app:cached
- bundler:/usr/local/bundle:delegated
- app_tmp:/usr/src/app/tmp:delegated
- node_modules:/usr/src/app/node_modules:delegated
services:
web:
<<: *app
command: sh -c "
(bundle check || bundle install) &&
yarn install --check-files &&
./usr/src/app/entrypoint.sh
"
volumes:
bundler:
bootsnap_cache:
node_modules:
app_tmp: