-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (61 loc) · 1.74 KB
/
docker-compose.yml
File metadata and controls
69 lines (61 loc) · 1.74 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.8'
services:
# PostgreSQL Database
postgres:
image: postgres:16-alpine
container_name: texture-provider-db
restart: unless-stopped
environment:
POSTGRES_USER: texture_user
POSTGRES_PASSWORD: texture_password
POSTGRES_DB: texture_provider
volumes:
- postgres_data:/var/lib/postgresql/data
- ./migrations:/docker-entrypoint-initdb.d:ro
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U texture_user -d texture_provider"]
interval: 10s
timeout: 5s
retries: 5
# Texture Provider Application
app:
build:
context: .
dockerfile: Dockerfile
container_name: texture-provider-app
restart: unless-stopped
ports:
- "3000:3000"
environment:
# Database
DATABASE_URL: postgresql://texture_user:texture_password@postgres/texture_provider
# JWT (You should replace this with your actual public key)
JWT_PUBLIC_KEY: BASE64_ECDSA_LAUNCHSERVER_KEY
# Base URL
BASE_URL: http://localhost:3000
# Storage Configuration
STORAGE_TYPE: local
LOCAL_STORAGE_PATH: /app/uploads
# Retrieval Configuration
RETRIEVAL_TYPE: storage
# RETRIEVAL_CHAIN: storage,mojang,default_skin
# Server
SERVER_PORT: 3000
volumes:
- uploads_data:/app/uploads
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/get/00000000-0000-0000-0000-000000000000"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
volumes:
postgres_data:
driver: local
uploads_data:
driver: local