23 lines
510 B
YAML
23 lines
510 B
YAML
services:
|
|
backend:
|
|
build: .
|
|
environment:
|
|
JWT_SECRET: ${JWT_SECRET}
|
|
DATABASE_URL: 'postgresql://tester:testing123!@backend_db/backend'
|
|
depends_on:
|
|
- backend_db
|
|
restart: unless-stopped
|
|
|
|
backend_db:
|
|
image: ghcr.io/fboulnois/pg_uuidv7:1.5.0
|
|
environment:
|
|
- POSTGRES_USER=tester
|
|
- POSTGRES_PASSWORD=testing123!
|
|
- POSTGRES_DB=backend
|
|
volumes:
|
|
- backend_db_data:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
backend_db_data:
|