-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
126 lines (117 loc) · 2.74 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
---
version: "3.7"
services:
voyages-mysql:
image: "mysql:8.0.23"
cap_add:
- SYS_NICE # CAP_SYS_NICE
container_name: "voyages-mysql"
hostname: "voyages-mysql"
restart: "on-failure"
ports:
- "3306:3306"
networks:
- "voyages"
volumes:
- "mysql_volume:/var/lib/mysql"
command: --slow-query-log=ON --long-query-time=3 --slow-query-log-file=/tmp/slow.log
environment:
MYSQL_ROOT_PASSWORD: "voyages"
voyages-solr:
image: "solr:8.5.2"
container_name: "voyages-solr"
hostname: "voyages-solr"
restart: "on-failure"
ports:
- "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:
- "6379:6379"
networks:
- "voyages"
volumes:
- "redis_volume:/data"
voyages-django:
image: "voyages-django"
container_name: "voyages-django"
hostname: "voyages-django"
restart: "on-failure"
depends_on:
- "voyages-mysql"
- "voyages-solr"
- "voyages-redis"
ports:
- "8000:8000"
networks:
- "voyages"
volumes:
- ".:/srv/voyages"
- "./documents:/mnt/sv_share/documents"
- "./voyages/sitemedia:/mnt/sv_share/sitemedia"
- "./voyages/static:/mnt/sv_share/static"
build:
context: "."
dockerfile: "./docker/django/Dockerfile"
voyages-nginx:
image: "nginx:1.19.8-alpine"
container_name: "voyages-nginx"
hostname: "voyages-nginx"
restart: "on-failure"
depends_on:
- "voyages-django"
ports:
- "8100:80"
networks:
- "voyages"
volumes:
- "./docker/nginx/conf.d:/etc/nginx/conf.d"
- "./documents:/mnt/sv_share/documents"
- "./voyages/sitemedia:/mnt/sv_share/sitemedia"
- "./voyages/static:/mnt/sv_share/static"
voyages-adminer:
image: "adminer:latest"
container_name: "voyages-adminer"
hostname: "voyages-adminer"
restart: "on-failure"
depends_on:
- "voyages-mysql"
ports:
- "8080:8080"
networks:
- "voyages"
voyages-mailhog:
image: "mailhog/mailhog:latest"
container_name: "voyages-mailhog"
hostname: "voyages-mailhog"
restart: "on-failure"
depends_on:
- "voyages-django"
ports:
- "1025:1025"
- "8025:8025"
networks:
- "voyages"
logging:
driver: "none"
networks:
voyages:
driver: "bridge"
ipam:
driver: "default"
config:
- subnet: "172.20.0.0/16"
volumes:
mysql_volume: {}
solr_volume: {}
redis_volume: {}