36 lines
802 B
YAML
36 lines
802 B
YAML
services:
|
|
server:
|
|
build:
|
|
context: .
|
|
depends_on:
|
|
- postgres
|
|
ports:
|
|
- 3000:3000
|
|
environment:
|
|
LOG_LEVEL: debug
|
|
LOG_TEXTLOGGING: "true"
|
|
#PORT: 3000
|
|
DB_DSN: postgres://postgres:postgres@postgres:5432/postgres?sslmode=disable
|
|
#AUTH_JWT_EXPIRY: 1h
|
|
#AUTH_JWT_REFRESH_EXPIRY: 72h
|
|
#AUTH_JWT_SECRET: my secret
|
|
#EMAIL_FROM_ADDRESS: go-base
|
|
#EMAIL_FROM_NAME: Go Base
|
|
#EMAIL_SMTP_HOST:
|
|
#EMAIL_SMTP_PORT: 465
|
|
#EMAIL_SMTP_USER:
|
|
#EMAIL_SMTP_PASSWORD:
|
|
ENABLE_CORS: "true"
|
|
|
|
postgres:
|
|
image: postgres:17-alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
volumes:
|
|
postgres:
|