-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose-dev.yml
164 lines (154 loc) · 4.03 KB
/
docker-compose-dev.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
158
159
160
161
162
163
164
version: '3.1'
services:
postgres:
image: postgres
restart: always
ports:
- '5437:5432'
volumes:
- pg-data:/data/postgres
env_file:
- .env.docker-dev
networks:
- postgres
mongo:
image: mongo:5.0
restart: always
ports:
- 27021:27017
volumes:
- mongodb_data_container:/data/db
environment:
- MONGO_INITDB_ROOT_DATABASE=draft
- MONGO_INITDB_ROOT_USERNAME=draft
- MONGO_INITDB_ROOT_PASSWORD=draft
pgadmin:
links:
- postgres:postgres
image: dpage/pgadmin4
ports:
- '8080:80'
volumes:
- pg-data:/root/.pgadmin
env_file:
- .env.docker-dev
networks:
- postgres
redis:
image: 'redis:alpine'
env_file:
- .env.docker-dev
ports:
- '6379:6379'
networks:
- redis
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- '8081:8081'
depends_on:
- redis
networks:
- redis
dynamodb:
image: amazon/dynamodb-local
container_name: dynamodb
hostname: dynamodb
restart: always
volumes:
- ./dynamodb-data:/home/dynamodblocal/data
ports:
- 8000:8000
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath /home/dynamodblocal/data/"
# api:
# networks:
# - postgres
# - redis
# env_file:
# - .env.local
# environment:
# - NEST_APP_TYPE=api
# - DATABASE_HOST=postgres
# - DATABASE_PORT=5432
# - REDIS_CACHE_URL=redis://@redis:6379/0
# - REDIS_SOCKET_URL=redis://@redis:6379/1
# - REDIS_EVENT_URL=redis://@redis:6379/2
# - REDIS_CONNECTION_STRING=redis://@redis:6379/4
# build:
# context: .
# args:
# - APP_NAME=api
# TODO: Add opensearch docker containers (current containers are not working)
# opensearch-node1:
# image: opensearchproject/opensearch:latest
# container_name: opensearch-node1
# environment:
# - cluster.name=opensearch-cluster
# - node.name=opensearch-node1
# - discovery.seed_hosts=opensearch-node1,opensearch-node2
# - cluster.initial_master_nodes=opensearch-node1,opensearch-node2
# - bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
# - plugins.security.disabled=true
# - "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
# ulimits:
# memlock:
# soft: -1
# hard: -1
# nofile:
# soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
# hard: 65536
# volumes:
# - opensearch-data1:/usr/share/opensearch/data
# ports:
# - 9200:9200
# - 9600:9600 # required for Performance Analyzer
# expose:
# - "9200"
# networks:
# - opensearch-net
# opensearch-node2:
# image: opensearchproject/opensearch:latest
# container_name: opensearch-node2
# environment:
# - cluster.name=opensearch-cluster
# - node.name=opensearch-node2
# - discovery.seed_hosts=opensearch-node1,opensearch-node2
# - cluster.initial_master_nodes=opensearch-node1,opensearch-node2
# - bootstrap.memory_lock=true
# - plugins.security.disabled=true
# - "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
# ulimits:
# memlock:
# soft: -1
# hard: -1
# nofile:
# soft: 65536
# hard: 65536
# volumes:
# - opensearch-data2:/usr/share/opensearch/data
# networks:
# - opensearch-net
# opensearch-dashboards:
# image: opensearch-dashboards-no-security
# container_name: opensearch-dashboards
# ports:
# - 5601:5601
# expose:
# - "5601"
# environment:
# OPENSEARCH_HOSTS: '["http://opensearch-node1:9200","http://opensearch-node2:9200"]'
# networks:
# - opensearch-net
volumes:
pg-data:
mongodb_data_container:
opensearch-data1:
opensearch-data2:
networks:
postgres:
driver: bridge
redis:
driver: bridge
opensearch-net: