41 lines
877 B
YAML
Executable File
41 lines
877 B
YAML
Executable File
services:
|
|
postgres:
|
|
container_name: "rss-postgres"
|
|
image: "postgres:15"
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
- "POSTGRES_USER=admin"
|
|
- "POSTGRES_DB=rss"
|
|
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
backend:
|
|
container_name: "rss-backend"
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
depends_on:
|
|
- postgres
|
|
environment:
|
|
- "DATABASE_URL=postgres://admin:${POSTGRES_PASSWORD}@postgres/rss"
|
|
- "JWT_SECRET=${JWT_SECRET}"
|
|
- "FRONTEND_ORIGIN=${FRONTEND_ORIGIN}"
|
|
- "RUST_LOG=${RUST_LOG}"
|
|
ports:
|
|
- "0.0.0.0:8001:8001"
|
|
|
|
frontend:
|
|
container_name: "rss-frontend"
|
|
build:
|
|
context: ./vue
|
|
dockerfile: Dockerfile
|
|
depends_on:
|
|
- backend
|
|
ports:
|
|
- "0.0.0.0:8080:80"
|
|
|
|
volumes:
|
|
postgres_data:
|