41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
services:
|
|
keyselector:
|
|
build: .
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3030:3000"
|
|
environment:
|
|
- PORT=3000
|
|
- DB_USER=${DB_USER:-postgres}
|
|
- DB_HOST=postgres
|
|
- DB_NAME=${DB_NAME:-keyselector}
|
|
- DB_PASSWORD=${DB_PASSWORD:-postgres}
|
|
- ACRCLOUD_HOST=${ACRCLOUD_HOST}
|
|
- ACRCLOUD_ACCESS_KEY=${ACRCLOUD_ACCESS_KEY}
|
|
- ACRCLOUD_ACCESS_SECRET=${ACRCLOUD_ACCESS_SECRET}
|
|
- GETSONGBPM_API_KEY=${GETSONGBPM_API_KEY}
|
|
- MINIMAX_API_KEY=${MINIMAX_API_KEY}
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
POSTGRES_USER: ${DB_USER:-postgres}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
|
|
POSTGRES_DB: ${DB_NAME:-keyselector}
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-postgres}"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
pgdata:
|