-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (56 loc) · 1.35 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
version: '3'
services:
pubsub-redis:
image: redis:7.0.9-alpine
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning
environment:
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL,CONFIG
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_AOF_ENABLED=no
consumer:
image: golang:1.20-alpine
restart: always
working_dir: /go/src/app/consumers
environment:
- CHANNEL_ID=makima:twitter:new
- WEBHOOK_URL=
- LOGGER_API_TOKEN=
- REDIS_CONN_STRING='pubsub-redis:6379'
- REDIS_PASSWORD=
- REDIS_DB=0
command: go run main.go
volumes:
- .:/go/src/app
depends_on:
- pubsub-redis
collector:
image: golang:1.20-alpine
restart: always
working_dir: /go/src/app/collectors
command: go run main.go
environment:
- CHANNEL_ID=makima:twitter:new
- TWITTER_CONSUMER_KEY=
- TWITTER_CONSUMER_SECRET=
- LOGGER_API_TOKEN=
- REDIS_CONN_STRING='pubsub-redis:6379'
- REDIS_PASSWORD=
- REDIS_DB=0
volumes:
- .:/go/src/app
depends_on:
- pubsub-redis
ping:
image: golang:1.17.2-alpine3.14
restart: always
working_dir: /go/src/app/ping
command: go run main.go
volumes:
- .:/go/src/app
environment:
- LOGGER_API_TOKEN=
depends_on:
- pubsub-redis