-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (31 loc) · 831 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
31 lines (31 loc) · 831 Bytes
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
services:
db:
image: postgres:17.7-alpine
ports:
- "15432:5432"
environment:
POSTGRES_USER: ${DB_APP_USER}
POSTGRES_PASSWORD: ${DB_APP_PASS}
volumes:
- "./data:/var/data/db"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${DB_APP_USER}" ]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
webserver:
build: ./
ports:
- "9010:9010"
depends_on:
db:
condition: service_healthy
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/impera-bot
SPRING_DATASOURCE_USERNAME: ${DB_APP_USER}
SPRING_DATASOURCE_PASSWORD: ${DB_APP_PASS}
DISCORD_TOKEN: ${DISCORD_TOKEN}
IMPERA_USERNAME: ${IMPERA_USER_NAME}
IMPERA_PASSWORD: ${IMPERA_USER_PASSWORD}
restart: unless-stopped