forked from mozilla/tls-observatory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (42 loc) · 1.01 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
version: '2'
services:
api:
build:
context: .
dockerfile: ./tools/Dockerfile-api
command: /go/bin/tlsobs-api
depends_on:
- postgres
environment:
- TLSOBS_POSTGRES=postgres
- TLSOBS_POSTGRESDB=tls_observatory
- TLSOBS_POSTGRESUSER=tlsobsapi
- TLSOBS_POSTGRESPASS=mysecretpassphrase
links:
- postgres
ports:
- "8083:8083"
restart: unless-stopped
scanner:
build:
context: .
dockerfile: ./tools/Dockerfile-scanner
command: /go/bin/tlsobs-scanner
depends_on:
- postgres
environment:
- TLSOBS_POSTGRES=postgres
- TLSOBS_POSTGRESDB=tls_observatory
- TLSOBS_POSTGRESUSER=tlsobsscanner
- TLSOBS_POSTGRESPASS=mysecretpassphrase
links:
- postgres
restart: unless-stopped
postgres:
build:
context: .
dockerfile: ./tools/Dockerfile-postgres
environment:
- POSTGRES_USER=tlsobs
- POSTGRES_PASSWORD=totallyfakepassword
- POSTGRES_DB=tls_observatory