forked from urbanguacamole/torrent-paradise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
80 lines (74 loc) · 1.64 KB
/
docker-compose.yaml
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
70
71
72
73
74
75
76
77
78
79
80
services:
postgres:
image: postgres:16-alpine
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=nextgen
- POSTGRES_USER=nextgen
- POSTGRES_DB=nextgen
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U nextgen -d nextgen'"]
interval: 1s
timeout: 1s
retries: 5
start_period: 1s
pgadmin:
image: dpage/pgadmin4
logging:
driver: none
ports:
- 5433:80
environment:
- PGADMIN_DEFAULT_PASSWORD=benitops
volumes:
- ./servers.json:/pgadmin4/servers.json
api:
build:
context: .
dockerfile: ./src/back/api/Dockerfile
restart: always
ports:
- 8000:8000
depends_on:
postgres:
condition: service_healthy
restart: true
nginx:
image: nginx
ports:
- 8080:80
depends_on:
- api
volumes:
- ./src/front:/usr/share/nginx/html
- ./src/front/nginx.conf:/etc/nginx/conf.d/default.conf
crawl-rss:
build:
context: .
dockerfile: ./src/back/crawl-rss/Dockerfile
restart: always
depends_on:
postgres:
condition: service_healthy
restart: true
magnetico-import:
build:
context: .
dockerfile: ./src/back/import-magnetico-db/Dockerfile
restart: no
command: ["data.csv"]
depends_on:
postgres:
condition: service_healthy
restart: true
seedleech:
build:
context: .
dockerfile: ./src/back/seedleech/Dockerfile
restart: always
depends_on:
postgres:
condition: service_healthy
restart: true