35 lines
672 B
YAML
35 lines
672 B
YAML
services:
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: agenda
|
|
POSTGRES_USER: agenda
|
|
POSTGRES_PASSWORD: agenda
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
adminer:
|
|
image: adminer:4
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- ADMINER_DEFAULT_SERVER=postgres
|
|
depends_on:
|
|
- postgres
|
|
|
|
agenda:
|
|
build: .
|
|
ports:
|
|
- "4000:4000"
|
|
restart: unless-stopped
|
|
environment:
|
|
- PORT=4000
|
|
- DATABASE_URL=postgresql://agenda:agenda@postgres:5432/agenda
|
|
depends_on:
|
|
- postgres
|
|
|
|
volumes:
|
|
postgres_data:
|