-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.local.yml
90 lines (87 loc) · 2.25 KB
/
docker-compose.local.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
version: '3.7'
volumes:
pgdata:
# minio:
services:
pgdb:
shm_size: 4gb
command: postgres -c 'max_connections=5000'
build:
context: ./infra-local/postgres
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: arblacklist
PGDATA: /var/lib/postgresql/data/pgdata
restart: always
ports:
- '5432:5432'
indexer:
depends_on:
- pgdb
s3-local:
image: bitnami/minio:latest
# volumes:
# - minio:/data
ports:
# - '9000:9000'
- '9001:9001' # for UI
environment:
MINIO_ROOT_USER: minioroot
MINIO_ROOT_PASSWORD: minioroot
# MINIO_FORCE_NEW_KEYS: 'yes'
MINIO_DEFAULT_BUCKETS: shepherd-input-mod-local:public
sqs-local:
build:
context: ./infra-local/sqs-local
args:
EXTRA_QUEUES: ${EXTRA_QUEUES:-}
ports:
# - '9324:9324'
- '9325:9325' # for UI
localbridge:
build:
context: ./infra-local/localbridge
environment:
AWS_ACCESS_KEY_ID: dummy
AWS_SECRET_ACCESS_KEY: dummytoo
SLACK_WEBHOOK: ${SLACK_WEBHOOK:-}
depends_on:
- sqs-local
- s3-local
deploy:
restart_policy:
condition: always
feeder:
environment:
SQS_LOCAL: 'yes'
AWS_ACCESS_KEY_ID: dummy
AWS_SECRET_ACCESS_KEY: dummytoo
AWS_FEEDER_QUEUE: http://sqs-local:9324/000000000000/shepherd2-feeder-q
depends_on:
- sqs-local
fetchers:
environment:
SQS_LOCAL: 'yes'
AWS_ACCESS_KEY_ID: dummy
AWS_SECRET_ACCESS_KEY: dummytoo
AWS_FEEDER_QUEUE: http://sqs-local:9324/000000000000/shepherd2-feeder-q
S3_LOCAL: 'yes'
S3_LOCAL_ENDPOINT: http://s3-local:9000
AWS_INPUT_BUCKET: shepherd-input-mod-local
depends_on:
- sqs-local
- s3-local
- localbridge
addon:
# container_name: ${ADDON:-nsfw}
extends:
file: ./addons/${ADDON:-nsfw}/docker-compose.local.yml
service: addon
depends_on:
- sqs-local
- s3-local
- http-api
# DO NOT ADD ANYTHING BELOW THIS LINE. generated services will be appended here.