-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (54 loc) · 1.13 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
version: '3'
services:
nodes_database:
container_name: nodes_db
build:
context: .
dockerfile: "./db/Dockerfile"
environment:
- POSTGRES_PASSWORD=superuser_pwd
- POSTGRES_DB=nodes
volumes:
- nodes_db_volume:/var/lib/postgresql/data
expose:
- "5432"
ports:
- "5432:5432"
nodes_api:
container_name: nodes_api
entrypoint: ["nodes", "api"]
build:
context: .
dockerfile: "./Dockerfile"
env_file:
- ./conf/db.env
environment:
- GIN_MODE=release
expose:
- "8080"
ports:
- "8080:8080"
depends_on:
- nodes_database
nodes_crawler:
container_name: nodes_crawler
entrypoint: ["/bin/sh", "-c", "nodes crawler && crond -f -l 8"]
build:
context: .
dockerfile: "./Dockerfile"
env_file:
- ./conf/db.env
depends_on:
- nodes_database
nodes_pinger:
container_name: nodes_pinger
entrypoint: ["nodes", "pinger"]
build:
context: .
dockerfile: "./Dockerfile"
env_file:
- ./conf/db.env
depends_on:
- nodes_database
volumes:
nodes_db_volume: