forked from JohnMulligan/voyages-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
147 lines (137 loc) · 3.29 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
---
version: "3.7"
services:
voyages-mysql:
image: "mysql:8.0.33-oracle"
cap_add:
- "SYS_NICE"
container_name: "voyages-mysql"
hostname: "voyages-mysql"
restart: "on-failure"
ports:
- "127.0.0.1:3306:3306"
networks:
- "voyages"
volumes:
- "./data:/docker-entrypoint-initdb.d"
- "mysql_volume:/var/lib/mysql"
command: "--slow-query-log=ON --long-query-time=3 --slow-query-log-file=/tmp/slow.log"
environment:
MYSQL_DATABASE: "voyages_api"
MYSQL_ROOT_PASSWORD: "voyages"
MYSQL_USER: "voyages"
MYSQL_PASSWORD: "voyages"
voyages-solr:
image: "solr:8.5.2"
container_name: "voyages-solr"
hostname: "voyages-solr"
restart: "on-failure"
ports:
- "127.0.0.1:8983:8983"
networks:
- "voyages"
volumes:
- "solr_volume:/var/solr"
- "./solr:/srv/voyages/solr"
environment:
SOLR_JAVA_MEM: "-Xms1g -Xmx1g"
voyages-redis:
image: "redis:3.2.12-alpine"
container_name: "voyages-redis"
hostname: "voyages-redis"
restart: "on-failure"
ports:
- "127.0.0.1:6379:6379"
networks:
- "voyages"
volumes:
- "redis_volume:/data"
voyages-api:
image: "voyages-api"
container_name: "voyages-api"
hostname: "voyages-api"
restart: "on-failure"
networks:
- "voyages"
depends_on:
- "voyages-mysql"
- "voyages-redis"
ports:
- "127.0.0.1:8000:8000"
volumes:
- "./api/:/srv/voyages-api"
build:
context: "."
dockerfile: "./docker/api/Dockerfile"
voyages-adminer:
image: "adminer:latest"
container_name: "voyages-adminer"
hostname: "voyages-adminer"
restart: "on-failure"
depends_on:
- "voyages-mysql"
ports:
- "127.0.0.1:8080:8080"
networks:
- "voyages"
environment:
ADMINER_DEFAULT_SERVER: "voyages-mysql"
voyages-stats:
image: "voyages-stats"
container_name: "voyages-stats"
hostname: "voyages-stats"
restart: "on-failure"
networks:
- "voyages"
depends_on:
- "voyages-api"
ports:
- "127.0.0.1:5000:5000"
volumes:
- "./stats/:/srv/voyages-stats"
build:
context: "."
dockerfile: "./docker/stats/Dockerfile"
voyages-people-networks:
image: "voyages-people-networks"
container_name: "voyages-people-networks"
hostname: "voyages-people-networks"
restart: "on-failure"
networks:
- "voyages"
depends_on:
- "voyages-api"
ports:
- "127.0.0.1:5006:5006"
volumes:
- "./people-networks/:/srv/voyages-people-networks"
build:
context: "."
dockerfile: "./docker/people-networks/Dockerfile"
voyages-geo-networks:
image: "voyages-geo-networks"
container_name: "voyages-geo-networks"
hostname: "voyages-geo-networks"
restart: "on-failure"
networks:
- "voyages"
depends_on:
- "voyages-api"
ports:
- "127.0.0.1:5005:5005"
volumes:
- "./geo-networks/:/srv/voyages-geo-networks"
build:
context: "."
dockerfile: "./docker/geo-networks/Dockerfile"
networks:
voyages:
driver: "bridge"
ipam:
driver: "default"
config:
- subnet: "172.20.0.0/16"
volumes:
mysql_volume: {}
solr_volume: {}
redis_volume: {}