-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
65 lines (60 loc) · 1.32 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
56
57
58
59
60
61
62
63
64
65
version: "2.4"
services:
cbwebreader:
build: .
env_file: .env
links:
- database
depends_on:
database:
condition: service_healthy
expose:
- 8000
volumes:
- ${COMIC_BOOK_VOLUME}:/comics
# - c:/comics:/comics
- static_files:/static
- media_files:/media
- .env:/src/.env
command: /bin/bash /src/entrypoint.sh
# cbwebreader-cron:
# build: .
# env_file: .env
# links:
# - database
# depends_on:
# database:
# condition: service_healthy
# volumes:
# - ${COMIC_BOOK_VOLUME}:${COMIC_BOOK_VOLUME}
# - media_files:/media
# - .env:/src/.env
# command: /bin/bash entrypoint-cron.sh
database:
image: postgres:16-alpine
expose:
- 5432
volumes:
- /var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $DB_USER -d $DB_DATABASE"]
interval: 5s
timeout: 10s
retries: 3
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_DB=${DB_DATABASE}
nginx:
image: nginx
volumes:
- static_files:/static
- media_files:/media
- ./cbreader/settings/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 8337:80
depends_on:
- cbwebreader
volumes:
static_files:
media_files: