-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
84 lines (77 loc) · 1.97 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
version: '2'
services:
stats:
image: docker.pkg.github.com/anothrnick/send-query-result/app:0.6.0
container_name: query_stats
environment:
- POSTGRES_USER=testuser
- POSTGRES_PW=1234
- POSTGRES_HOST=database
- POSTGRES_DB=testdb
- POSTGRES_SSL=disable
- STAT_QUERY
- STAT_INTERVAL
- STAT_URL
database:
image: postgres:12
container_name: postgres
volumes:
- db-data:/var/lib/postgresql/data
- ./sql/create.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- '127.0.0.1:5432:5432'
environment:
- POSTGRES_PASSWORD=1234
- POSTGRES_USER=testuser
- POSTGRES_DB=testdb
redis:
image: redis
container_name: cache
ports:
- '127.0.0.1:6379:6379'
events:
image: 'docker.pkg.github.com/machinable/event-processor/event-processor:0.5.3'
container_name: events
restart: always
depends_on:
- 'redis'
environment:
- REDIS_ADDR=
- REDIS_PW=
notifications:
image: 'docker.pkg.github.com/anothrnick/email-notifications/email-notifications:1.0.2'
container_name: notifications
restart: always
depends_on:
- 'redis'
volumes:
- ./config/sample-config.json:/usr/config.json
- ./local/templates/:/templates/
environment:
- EMAIL_CONFIG_PATH=/usr/config.json
- SENDGRID_API_KEY
api:
build:
context: .
dockerfile: Dockerfile
args:
VERSION: $VERSION
container_name: machinable_api
depends_on:
- 'database'
- 'redis'
ports:
- "127.0.0.1:5001:5001"
volumes:
- ./config/sample-config.json:/usr/config.json
environment:
- POSTGRES_USER=testuser
- POSTGRES_PW=1234
- POSTGRES_HOST=database
- POSTGRES_DB=testdb
- MACHINABLE_CONFIG_PATH=/usr/config.json
- APP_SECRET
- RECAPTCHA_SECRET
- IPSTACK_KEY
volumes:
db-data: