debshots/docker-compose.yml

27 lines
606 B
YAML

services:
postgres:
image: postgres:16
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: debshots
POSTGRES_PASSWORD: debshots
POSTGRES_DB: debshots
web:
build: .
depends_on:
- postgres
#command: bash -c "rm -f tmp/pids/server.pid && rails server -b 0.0.0.0"
volumes:
- .:/opt/app
ports:
- "3333:3000"
environment:
DATABASE_URL: postgres://debshots:debshots@postgres:5432/debshots
SMTP_SERVER: smtp-debug
smtp-debug:
image: namshi/smtp
ports:
- "25:1025"
volumes:
db_data: