code-examples/2024/07/golang_demo1/docker_compose.yml

11 lines
228 B
YAML

services:
db:
image: postgres:16
ports:
- '5432:5432'
volumes:
- '/opt/db_data:/var/lib/postgresql/data'
environment:
POSTGRES_PASSWORD: pass
POSTGRES_DB: repo
POSTGRES_USER: db_user