wedding-planner/docker-compose.yml

38 lines
727 B
YAML
Raw Normal View History

2024-11-03 13:40:50 +01:00
services:
backend:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "3001:3001"
depends_on:
- db
environment:
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
RAILS_ENV: development
PORT: 3001
frontend:
build: ../wedding-planner-frontend
ports:
- 3000:3000
depends_on:
- backend
nginx:
image: nginx:latest
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- frontend
- backend
db:
image: postgres:17
ports:
- 5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres