-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (38 loc) · 1.07 KB
/
docker-compose.yml
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
services:
shikkanime-db:
image: postgres:16-alpine
restart: always
container_name: shikkanime-db
environment:
POSTGRES_PASSWORD: "mysecretpassword"
POSTGRES_USER: postgres
POSTGRES_DB: shikkanime
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
shikkanime-core:
build:
context: .
ports:
- "37100:37100"
restart: on-failure
container_name: shikkanime-core
depends_on:
shikkanime-db:
condition: service_healthy
environment:
DATABASE_URL: jdbc:postgresql://shikkanime-db:5432/shikkanime
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: "mysecretpassword"
JWT_SECRET: "mysecretkey"
JWT_DOMAIN: "http://localhost:37100"
JWT_REALM: "Access to '/admin'"
JWT_AUDIENCE: "http://localhost:37100/admin"
BASE_URL: "http://localhost:37100"
API_URL: "http://localhost:37100/api"
volumes:
- ./data:/app/data/
healthcheck:
test: curl --fail http://localhost:37100/ || exit 1
interval: 30s
timeout: 10s
retries: 5