-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
55 lines (52 loc) · 1.23 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
53
54
55
version: '3'
volumes:
db:
services:
app:
container_name: kaizoku
build:
context: .
dockerfile: docker/Dockerfile
environment:
- DATABASE_URL=postgresql://${DATABASE_USER:-kaizoku}:${DATABASE_PASSWORD:-kaizoku}@db:${DATABASE_PORT:-5432}/${DATABASE_SCHEMA:-kaizoku}
- REDIS_HOST=redis
- PUID=1000
- PGID=1000
- TZ=Europe/Istanbul
env_file:
- .env
volumes:
- ./kaizoku/data:/data
- ./kaizoku/config:/config
- ./kaizoku/logs:/logs
depends_on:
db:
condition: service_healthy
ports:
- "${KAIZOKU_PORT:-3000}:3000"
redis:
image: redis:7-alpine
ports:
- "${REDIS_PORT:-6379}:6379"
db:
image: postgres:alpine
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U kaizoku" ]
interval: 5s
timeout: 5s
retries: 5
env_file:
- .env
environment:
- POSTGRES_USER=${DATABASE_USER:-kaizoku}
- POSTGRES_DB=${DATABASE_SCHEMA:-kaizoku}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD:-kaizoku}
volumes:
- db:/var/lib/postgresql/data
ports:
- "${DATABASE_PORT:-5432}:5432"
apprise:
image: caronc/apprise:latest
ports:
- "9292:8000"