Files
toir-automatization/.claude/worktrees/goofy-haslett/docker-compose.yml
2026-04-07 19:40:41 +03:00

47 lines
912 B
YAML

services:
postgres:
image: postgres:16
environment:
POSTGRES_DB: toir
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
server:
build:
context: ./server
env_file:
- ./server/.env.example
environment:
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/toir"
depends_on:
- postgres
ports:
- "${SERVER_PORT:-3000}:3000"
db-seed:
build:
context: .
dockerfile: db-seed/Dockerfile
environment:
POSTGRES_HOST: postgres
POSTGRES_DB: toir
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
depends_on:
- postgres
client:
build:
context: ./client
depends_on:
- server
ports:
- "${CLIENT_PORT:-8080}:80"
volumes:
postgres-data: