Files
libr-2/docker-compose.yml

30 lines
554 B
YAML

version: "3.2"
services:
web:
image: ruby:2.5.1
working_dir: /myapp
volumes:
- type: bind
source: .
target: /myapp
volume:
nocopy: true
- gems_cache:/usr/local/bundle
ports:
- "3000:3000"
links:
- postgres
entrypoint: [./entrypoint.sh]
command: bundle exec puma -t 5:5 -p 3000
postgres:
image: postgres:latest
ports:
- "5432:5432"
environment:
POSTGRES_DB: tuxue
volumes:
- ~/data:/var/lib/postgresql/data
volumes:
gems_cache: