2021-10-08 00:37:04 +00:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
app:
|
2022-06-16 02:37:22 +00:00
|
|
|
build:
|
|
|
|
context: .
|
2022-06-16 03:29:08 +00:00
|
|
|
dockerfile: Dockerfile
|
2022-06-16 02:49:25 +00:00
|
|
|
restart: unless-stopped
|
2022-06-16 03:16:03 +00:00
|
|
|
tty: true
|
2022-06-16 02:44:07 +00:00
|
|
|
container_name: app
|
2022-06-16 12:04:46 +00:00
|
|
|
command: >
|
|
|
|
bash -c "yarn --cwd public/ &&
|
|
|
|
whenever -w &&
|
|
|
|
/etc/init.d/cron restart &&
|
|
|
|
bundle exec ruby app.rb -o 0.0.0.0 -p 4567"
|
2021-10-08 00:37:04 +00:00
|
|
|
ports:
|
|
|
|
- "4567:4567"
|
2022-06-16 04:05:03 +00:00
|
|
|
volumes:
|
|
|
|
- .:/code
|