data-transfer-test/docker-compose.yml

18 lines
418 B
YAML

version: "3.8"
services:
app:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
tty: true
container_name: data_transfer_test_app
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"
ports:
- "4567:4567"
volumes:
- .:/code