-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
155 lines (144 loc) · 3.12 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
version: '3'
services:
postgres:
image: postgres
container_name: pgsql-dev
networks:
- redarc
environment:
POSTGRES_PASSWORD: test1234
volumes:
- pgredarc01:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD", "pg_isready", "-h", "pgsql-dev", "-U", "postgres"]
timeout: 10s
retries: 10
postgres_fts:
image: postgres
container_name: pgsql-fts
networks:
- redarc
environment:
POSTGRES_PASSWORD: test1234
volumes:
- pgftsredarc01:/var/lib/postgresql/data
ports:
- "5433:5432"
healthcheck:
test: ["CMD", "pg_isready", "-h", "pgsql-fts", "-U", "postgres"]
timeout: 10s
retries: 10
redarc:
build:
context: .
dockerfile: Dockerfile
image: redarc
container_name: redarc
networks:
- redarc
env_file:
- .env
volumes:
- redarc_api_logs:/redarc/api/logs
- redarc_images:/ingest/gallery-dl
ports:
- "80:80"
depends_on:
postgres:
condition: service_healthy
postgres_fts:
condition: service_healthy
redis:
condition: service_healthy
redis:
image: redis:7.0.12-alpine3.18
container_name: redis
networks:
- redarc
command: redis-server
healthcheck:
test: ["CMD", "redis-cli","ping"]
timeout: 10s
retries: 10
image_downloader:
build:
context: ./ingest/image_downloader
dockerfile: Dockerfile
image: image_downloader
container_name: image_downloader
networks:
- redarc
env_file:
- .env
volumes:
- redarc_ingest_logs:/image_downloader/logs
- redarc_images:/image_downloader/gallery-dl
depends_on:
redis:
condition: service_healthy
index_worker:
build:
context: ./ingest/index_worker
dockerfile: Dockerfile
image: index_worker
container_name: index_worker
networks:
- redarc
env_file:
- .env
volumes:
- redarc_ingest_logs:/index_worker/logs
depends_on:
postgres:
condition: service_healthy
postgres_fts:
condition: service_healthy
reddit_worker:
build:
context: ./ingest/reddit_worker
dockerfile: Dockerfile
image: reddit_worker
container_name: reddit_worker
networks:
- redarc
env_file:
- .env
volumes:
- redarc_ingest_logs:/reddit_worker/logs
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
subreddit_worker:
build:
context: ./ingest/subreddit_worker
dockerfile: Dockerfile
image: subreddit_worker
container_name: subreddit_worker
networks:
- redarc
env_file:
- .env
volumes:
- redarc_ingest_logs:/subreddit_worker/logs
depends_on:
redis:
condition: service_healthy
networks:
redarc:
driver: bridge
name: redarc
volumes:
pgredarc01:
driver: local
pgftsredarc01:
driver: local
redarc_ingest_logs:
driver: local
redarc_api_logs:
driver: local
redarc_images:
driver: local