docker compose up --buildAPI runs on http://localhost:8080, frontend on http://localhost:4200.
- Create a new Railway project.
- Add a Postgres plugin.
- Create a backend service from
backend/.- Dockerfile:
backend/Dockerfile.prod(picked up bybackend/railway.toml). - Set
ConnectionStrings__PoengrennContextto:Host=${PGHOST};Port=${PGPORT};Database=${PGDATABASE};Username=${PGUSER};Password=${PGPASSWORD};Ssl Mode=Require;Trust Server Certificate=true
- Dockerfile:
- Create a frontend service from
frontend/.- Dockerfile:
frontend/Dockerfile(picked up byfrontend/railway.toml). - Update
frontend/src/environments/environment.prod.tswith your backend URL before deploying.
- Dockerfile:
The API applies migrations automatically on startup. If you want seed data, run the SQL scripts in scripts/ against the Railway Postgres instance.