forked from alistairking/bgpfinder
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (43 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
43 lines (43 loc) · 1.09 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
services:
db:
image: postgres:15
ports:
- "5432:5432"
container_name: bgpfinder_db
restart: always
volumes:
- ./migrations:/docker-entrypoint-initdb.d
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypass
POSTGRES_DB: bgpfinder_db
bgpfinder:
build: .
container_name: bgpfinder_app
depends_on:
- db
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypass
POSTGRES_DB: bgpfinder_db
POSTGRES_PORT: "5432"
POSTGRES_HOST: db
env_file:
- example.env
ports:
- "8080:8080"
command: ["./cmd/bgpfinder-server/bgpfinder-server", "--port=8080", "--use-db", "--env-file=/bgpfinder/example.env"]
periodic_scraper:
build: .
container_name: bgpfinder_periodic_scraper
depends_on:
- db
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypass
POSTGRES_DB: bgpfinder_db
POSTGRES_PORT: "5432"
POSTGRES_HOST: db
env_file:
- example.env
command: ["./cmd/periodicscraper/scraper", "--env-file=/bgpfinder/example.env"]