-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
87 lines (76 loc) · 2 KB
/
docker-compose.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '3'
services:
postgres:
# For more details on configuring the Postgres Docker image, see:
# https://hub.docker.com/_/postgres/
build: src/database
# Expose the default Postgres port on localhost
ports:
- '5432:5432'
networks:
football-viz-net:
ipv4_address: 172.28.1.1
container_name: postgres
environment:
POSTGRES_USER: 'root'
POSTGRES_PASSWORD: 'root'
POSTGRES_DB: 'soccer'
# Copy files from dbinit into the image so that they will be run on boot
volumes:
- soccer_database_volume:/var/lib/postgresql/data
pgadmin:
# For more details on configuring the pgadmin4 Docker image, see:
# https://hub.docker.com/r/dpage/pgadmin4/
image: dpage/pgadmin4
# Expose the web UI on localhost port 8080
ports:
- '8080:80'
networks:
football-viz-net:
ipv4_address: 172.28.1.2
container_name: pgadmin
# Link this container to the postgres container with hostname 'postgres'
external_links:
- postgres:postgres
environment:
PGADMIN_DEFAULT_EMAIL: '[email protected]'
PGADMIN_DEFAULT_PASSWORD: 'root'
crawling:
build: src/crawler
networks:
football-viz-net:
ipv4_address: 172.28.1.3
container_name: crawler
command: tail -F anything
volumes:
- ".:/data"
model:
build: model
ports:
- "8081:5000"
networks:
football-viz-net:
ipv4_address: 172.28.1.4
container_name: model
command: tail -F anything
volumes:
- ".:/data"
passmap:
build: visualisation/maps/passmap
ports:
- '8082:8082'
networks:
football-viz-net:
ipv4_address: 172.28.1.5
container_name: passmap
volumes:
- ".:/data"
volumes:
soccer_database_volume:
driver: local
networks:
football-viz-net:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16