mirror of
https://github.com/wahyd4/libr-2.git
synced 2026-08-09 13:26:05 +10:00
30 lines
554 B
YAML
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:
|