-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (48 loc) · 1.27 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# version: "3.8"
services:
kofi-api:
container_name: kofi-api
image: lordlumineer/kofi-api:latest
restart: unless-stopped
# build: .
ports:
- 8080:8000
# environment:
# - ENVIRONMENT=production
# - DATABASE_URL=postgresql+psycopg2://<POSTGRES_USER>:<POSTGRES_PASSWORD>@db:5432/KoFiAPI
# - DATABASE_URL=sqlite:///./data/KoFi.db
# - ADMIN_SECRET_KEY=<ADMIN_SECRET_KEY>
# - DATA_RETENTION_DAYS=10
# volumes:
# - <PATH>:/app/data # Map local folder for persistent storage
depends_on:
db:
condition: service_healthy
db:
container_name: kofi-postgres
image: postgres
restart: unless-stopped
# set shared memory limit when using docker-compose
shm_size: 128mb
ports:
- 5432:5432
# volumes:
# - <PATH>:/var/lib/postgresql/data
environment:
POSTGRES_DB: KoFiAPI
POSTGRES_USER: <POSTGRES_USER>
POSTGRES_PASSWORD: <POSTGRES_PASSWORD>
healthcheck:
test: ["CMD-SHELL", "pg_isready -U <POSTGRES_USER> -d KoFiAPI"]
interval: 5s
timeout: 5s
retries: 30
adminer:
container_name: kofi-adminer
image: adminer
restart: unless-stopped
ports:
- 8181:8080
depends_on:
db:
condition: service_healthy