contactUs/docker-compose.yml
2022-05-14 18:05:04 +04:30

36 lines
731 B
YAML

version: '3'
volumes:
bundle:
db:
services:
db:
image: nouchka/sqlite3:latest
volumes:
- db:/root/db
stdin_open: true
tty: true
web: &rails
build:
context: .
dockerfile: Dockerfile
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rake db:create db:migrate db:seed && bundle exec rails s -b '0.0.0.0'"
volumes:
- .:/app
- bundle:/usr/local/bundle
- ./node_modules:/app/node_modules
tmpfs: /app/tmp
depends_on:
- db
env_file: app.env
tty: true
stdin_open: true
ports:
- "3000:3000"
environment:
VIRTUAL_HOST: contact.bitium.agency
LETSENCRYPT_HOST: contact.bitium.agency
VIRTUAL_PORT: 3000