-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (47 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
53 lines (47 loc) · 1.19 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
45
46
47
48
49
50
51
52
53
version: '3.8'
services:
postgres:
image: postgres:17-alpine
container_name: sn0rt-postgres
environment:
POSTGRES_DB: sn0rt
POSTGRES_USER: sn0rt
POSTGRES_PASSWORD: sn0rt
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U sn0rt"]
interval: 10s
timeout: 5s
retries: 5
networks:
- sn0rt-network
sn0rt:
image: ghcr.io/d135-1r43/sn0rt:latest
container_name: sn0rt-app
depends_on:
postgres:
condition: service_healthy
environment:
# Database configuration
QUARKUS_DATASOURCE_JDBC_URL: jdbc:postgresql://postgres:5432/sn0rt
QUARKUS_DATASOURCE_USERNAME: sn0rt
QUARKUS_DATASOURCE_PASSWORD: sn0rt
# Admin credentials (CHANGE THESE IN PRODUCTION!)
ADMIN_USERNAME: admin
ADMIN_PASSWORD: admin
# Base URL (update to your domain in production)
QUARKUS_APPLICATION_BASE_URL: http://localhost:8080
ports:
- "8080:8080"
networks:
- sn0rt-network
restart: unless-stopped
volumes:
postgres_data:
driver: local
networks:
sn0rt-network:
driver: bridge