-
Notifications
You must be signed in to change notification settings - Fork 54
/
docker-compose.yml
157 lines (146 loc) · 3.37 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
148
149
150
151
152
153
154
155
156
157
version: '3.4'
services:
db:
image: postgres:15.3
volumes:
- ./postgres-data:/var/lib/postgresql/data
- ./backend/db-init:/docker-entrypoint-initdb.d
ports:
- '5432:5432'
env_file:
- ./.env
networks:
- backend
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
command: ['postgres', '-c', 'log_statement=all', '-c', 'log_duration=on']
frontend:
build: ./frontend
volumes:
- ./frontend/src:/app/src
ports:
- '80:3000'
env_file:
- ./.env
tty: true
backend:
build: ./backend
volumes:
- ./backend/src:/app/src
- /var/run/docker.sock:/var/run/docker.sock
networks:
- backend
ports:
- '3000:3000'
env_file:
- ./.env
depends_on:
- db
minio:
image: bitnami/minio:2020.9.26
user: root
command: 'minio server /data'
networks:
- backend
volumes:
- ./minio-data:/data
ports:
- 9000:9000
environment:
- MINIO_ACCESS_KEY=aws_access_key
- MINIO_SECRET_KEY=aws_secret_key
logging:
driver: none
docs:
build:
context: ./
dockerfile: ./Dockerfile.docs
volumes:
- ./docs/src:/app/docs/src
- ./docs/gatsby-browser.js:/app/docs/gatsby-browser.js
- ./docs/gatsby-config.js:/app/docs/gatsby-config.js
- ./docs/gatsby-node.js:/app/docs/gatsby-node.js
ports:
- '4000:4000'
- '44475:44475'
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.0
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
command: ['elasticsearch', '-Elogger.level=WARN']
networks:
- backend
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
logging:
driver: none
# kib:
# image: docker.elastic.co/kibana/kibana:7.9.0
# networks:
# - backend
# ports:
# - 5601:5601
# environment:
# ELASTICSEARCH_URL: http://es:9200
# ELASTICSEARCH_HOSTS: http://es:9200
# LOGGING_QUIET: 'true'
matomodb:
image: mariadb:10.6
command: --max-allowed-packet=64MB
networks:
- backend
volumes:
- ./matomo-db-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
logging:
driver: none
matomo:
image: matomo:3.14.1
user: root
networks:
- backend
volumes:
- ./matomo-data:/var/www/html
environment:
- MATOMO_DATABASE_HOST=matomodb
- MATOMO_DATABASE_ADAPTER=mysql
- MATOMO_DATABASE_TABLES_PREFIX=matomo_
- MATOMO_DATABASE_USERNAME=root
- MATOMO_DATABASE_PASSWORD=password
- MATOMO_DATABASE_DBNAME=matomo
- MATOMO_GENERAL_PROXY_URI_HEADER=1
- MATOMO_GENERAL_ASSUME_SECURE_PROTOCOL=1
logging:
driver: none
rabbitmq:
image: 'rabbitmq:3.8-management'
ports:
- '5672:5672' # RabbitMQ default port
- '15672:15672' # RabbitMQ management plugin
networks:
- backend
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
volumes:
- rabbitmq-data:/var/lib/rabbitmq
volumes:
postgres-data:
es-data:
minio-data:
matomo-db-data:
matomo-data:
rabbitmq-data:
networks:
backend: