-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 992 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 992 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
32
33
34
35
36
37
services:
db:
container_name: openmtg-db
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- ${DATA_PATH}:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
retries: 5
app:
container_name: openmtg
build: .
image: ghcr.io/dredbaron/openmtg:latest
restart: unless-stopped
ports:
- "8080:80"
environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${DB_PASSWORD}@db/${POSTGRES_DB}
JWT_SECRET: ${JWT_SECRET}
CONFIG_PATH: /config
UPLOADS_PATH: /data/uploads
NOTEL: ${NOTEL:-}
depends_on:
db:
condition: service_healthy
volumes:
- ${CONFIG_PATH}:/config
- ${UPLOADS_PATH:-./uploads}:/data/uploads
- ${TRADES_PATH:-./trades}:/data/trades