-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
52 lines (48 loc) · 1.34 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
version: '3.8'
services:
postgres:
image: postgres:latest
environment:
POSTGRES_USER: statusphere_user
POSTGRES_PASSWORD: statusphere_password
POSTGRES_DB: statusphere_db
ports:
- "5432:5432"
scraper:
build:
context: ./
dockerfile: ./scraper/Dockerfile
environment:
STATUSPHERE_POSTGRES_HOST: postgres
STATUSPHERE_POSTGRES_PORT: 5432
STATUSPHERE_POSTGRES_USER: statusphere_user
STATUSPHERE_POSTGRES_PASSWORD: statusphere_password
STATUSPHERE_POSTGRES_DATABASE: statusphere_db
depends_on:
- postgres
apiserver:
build:
context: ./
dockerfile: ./apiserver/Dockerfile
ports:
- "8080:80"
environment:
STATUSPHERE_POSTGRES_HOST: postgres
STATUSPHERE_POSTGRES_PORT: 5432
STATUSPHERE_POSTGRES_USER: statusphere_user
STATUSPHERE_POSTGRES_PASSWORD: statusphere_password
STATUSPHERE_POSTGRES_DATABASE: statusphere_db
depends_on:
- postgres
jobrunner:
build:
context: ./
dockerfile: ./jobrunner/Dockerfile
environment:
STATUSPHERE_POSTGRES_HOST: postgres
STATUSPHERE_POSTGRES_PORT: 5432
STATUSPHERE_POSTGRES_USER: statusphere_user
STATUSPHERE_POSTGRES_PASSWORD: statusphere_password
STATUSPHERE_POSTGRES_DATABASE: statusphere_db
depends_on:
- postgres