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