forked from Yakabuff/redarc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
98 lines (91 loc) · 2.08 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
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", "-p", "5433"]
timeout: 10s
retries: 10
redarc:
build:
context: .
dockerfile: Dockerfile
image: redarc
container_name: redarc
networks:
- redarc
environment:
# Replace redarc.mysite.org with your hostname
REDARC_API: http://redarc.mysite.org/api/
REDARC_SUBMIT: http://redarc.mysite.org/submit/
SERVER_NAME: redarc.mysite.org
PGPASSWORD: test1234
ADMIN_PASSWORD: "qwerty"
ports:
- "80:80"
depends_on:
postgres:
condition: service_healthy
redarc_ingest:
build:
context: ./redarc_ingest
dockerfile: Dockerfile
image: redarc_ingest
container_name: redarc_ingest
networks:
- redarc
environment:
INGEST_ENABLED: true
PG_DATABASE: postgres
PG_USER: postgres
PG_PASSWORD: test1234
PG_HOST: pgsql-dev
PG_PORT: 5432
# Reddit credentials
CLIENT_ID: change me
CLIENT_SECRET: change me
PASSWORD: change me
USER_AGENT: "my user agent"
REDDIT_USERNAME: "change me"
INDEX_DELAY: 300
INGEST_PASSWORD: asdf
volumes:
- redarc_ingest_logs:/ingest/logs
depends_on:
postgres:
condition: service_healthy
networks:
redarc:
driver: bridge
name: redarc
volumes:
pgredarc01:
driver: local
pgftsredarc01:
driver: local
redarc_ingest_logs:
driver: local