forked from rudemex/nestjs-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
147 lines (135 loc) · 3.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
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
# docker-compose.yml - Only for local debug purposes
version: '3.9'
services:
postgres:
image: postgres:13
container_name: local-postgres
environment:
TZ: UTC
POSTGRES_DB: my_db
POSTGRES_USER: root
POSTGRES_PASSWORD: 123456
ports:
- '5432:5432'
volumes:
- ./.postgres_data:/var/lib/postgresql/data
# get ip address for connect to pgadmin
# docker inspect loc-postgres
pgadmin:
image: dpage/pgadmin4
container_name: local-pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: root@admin.com
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
mysql:
image: mysql:5.7
container_name: local-mysql
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: my_db
MYSQL_USER: admin
MYSQL_PASSWORD: 123456
ports:
- "3306:3306"
volumes:
- ./.mysql_data/db:/var/lib/mysql
mongo:
image: mongo:5.0
container_name: local-mongo
environment:
TZ: UTC
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: 123456
ports:
- '27017:27017'
volumes:
- ./.mongo_data:/data/db
redis:
image: redis:6.2-alpine
container_name: local-redis
environment:
TZ: UTC
REDIS_PORT: 6379
REDIS_PASSWORD: 123456
REDIS_HOST: cache
#REDIS_USERNAME: default
command: ["redis-server", "--appendonly", "yes", "--requirepass","123456"]
ports:
- '6379:6379'
volumes:
- ./.redis_data:/data
camunda:
image: camunda/camunda-bpm-platform:run-latest
container_name: local-camunda
environment:
TZ: UTC
ports:
- "8443:8080"
elasticsearch:
#7.17.0
image: docker.elastic.co/elasticsearch/elasticsearch:8.3.3
container_name: elasticsearch
restart: always
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms1g -Xmx1g
- xpack.security.enabled=false
- ELASTIC_PASSWORD=elastic
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- elasticsearch-data-volume:/usr/share/elasticsearch/data
ports:
- "9200:9200"
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:8.3.3
restart: always
environment:
SERVER_NAME: kibana
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
ports:
- "5601:5601"
depends_on:
- elasticsearch
jaeger:
container_name: local-jaeger
image: jaegertracing/all-in-one:latest
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "9411:9411"
environment:
- LOG_LEVEL=debug
app:
container_name: local-app
env_file:
- .env
#- .env.dev
build:
context: .
dockerfile: Dockerfile
command: "yarn start"
ports:
- '8080:8080'
networks:
- nestjs-network
volumes:
- ./usr/src/app
- ./usr/src/app/node_modules
restart: unless-stopped
networks:
nestjs-network: