-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
44 lines (42 loc) · 1.48 KB
/
Copy pathcompose.yml
File metadata and controls
44 lines (42 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
services:
postgres:
image: postgres:16-alpine
container_name: dripking-postgres
environment:
POSTGRES_DB: ${POSTGRES_DB:-dripking}
POSTGRES_USER: ${POSTGRES_USER:-dripking}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-dripking}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- dripking-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 10
backend:
build: .
container_name: dripking-backend
depends_on:
postgres:
condition: service_healthy
environment:
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE:-dev}
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_DB: ${POSTGRES_DB:-dripking}
POSTGRES_USER: ${POSTGRES_USER:-dripking}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-dripking}
JWT_SECRET: ${JWT_SECRET:-dev-only-change-me-dev-only-change-me-dev-only-change-me}
JWT_EXPIRATION: ${JWT_EXPIRATION:-86400000}
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS:-http://localhost:3000,http://127.0.0.1:3000}
DEV_ADMIN_ENABLED: ${DEV_ADMIN_ENABLED:-false}
DEV_ADMIN_EMAIL: ${DEV_ADMIN_EMAIL:-}
DEV_ADMIN_PASSWORD: ${DEV_ADMIN_PASSWORD:-}
DEV_ADMIN_NICKNAME: ${DEV_ADMIN_NICKNAME:-local-admin}
LOG_PATH: ${LOG_PATH:-/var/log/dripking}
ports:
- "${BACKEND_PORT:-8080}:8080"
volumes:
dripking-postgres-data: