This repository was archived by the owner on Feb 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (59 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
59 lines (59 loc) · 1.52 KB
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
version: '2.3'
services:
# For prod, comment this entire service out, and point to remote RDS instance using SSHSCAN_DATABASE_HOST env var
database:
build:
context: .
dockerfile: ./docker/database
ports:
- 5432:5432
volumes:
- ./postgres-data:/var/lib/postgresql/data
networks:
- default
restart: unless-stopped
api:
# build:
# context: .
# dockerfile: ./Dockerfile
image: "mozilla/ssh_scan_api:latest"
ports:
- 8000:8000
links:
- database
environment:
- SSHSCAN_API_HOST=api
- SSHSCAN_API_PORT=8000
- SSHSCAN_API_ALLOWED_PORTS=22
- SSHSCAN_API_AUTHENTICATION=false
- SSHSCAN_DATABASE_HOST=database
- SSHSCAN_DATABASE_NAME=ssh_observatory
- SSHSCAN_DATABASE_USERNAME=sshobs
networks:
- default
restart: always
depends_on:
- database
stdin_open: true
tty: true
working_dir: /app
command: ["/app/bin/ssh_scan_api"]
worker:
# For dev, comment this out, and use docker-compose from ssh_scan_worker project, comment out image, and uncomment build block
# For prod, comment this out, and use docker-compose from ssh_scan_worker project
image: "mozilla/ssh_scan_worker:latest"
scale: 3
links:
- api
depends_on:
- api
environment:
- SSHSCAN_API_HOST=api
- SSHSCAN_API_PORT=8000
networks:
- default
restart: always
stdin_open: true
tty: true
working_dir: /app
command: ["/app/bin/ssh_scan_worker"]