-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 1.1 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
# see https://docs.docker.com/compose/compose-file/compose-versioning/
version: "3.5" # specify docker compose version, v3.5 is compatible with docker 17.12.0+
# Define the services/containers to be run
services:
postgres:
image: postgres
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: blogdb
POSTGRES_USER: user
volumes:
- ./data/postgresql:/var/lib/postgresql
- ./pg-initdb.d:/docker-entrypoint-initdb.d
mongodb:
image: mongo
volumes:
- ./data/mongo:/data/db
ports:
- "27017:27017"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.16.1
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ./data/es:/usr/share/elasticsearch/data
artemis:
image: qoricode/activemq-artemis
environment:
ARTEMIS_USERNAME: user
ARTEMIS_PASSWORD: password
volumes:
- ./data/artemis:/var/lib/artemis/data
ports:
- "6161:61616"