-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (78 loc) · 1.87 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
version: '3.5'
services:
nest-app:
build:
context: .
target: deps
image: nest_app
command: npm start
environment:
- POSTGRES_HOST=postgres
- REDIS_HOST=redis
ports:
- '3000:3000'
depends_on:
- postgres
volumes:
- .:/var/www
networks:
- node-network
postgres:
image: postgres
environment:
- POSTGRES_DB=${POSTGRES_DB:-nestdb}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme}
volumes:
- ${DOCKER_VOLUMN:-~/.docker/data}/postgres:/data/postgres
ports:
- 5432:5432
networks:
- node-network
restart: unless-stopped
# pgadmin:
# image: dpage/pgadmin4
# environment:
# PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
# PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
# PGADMIN_CONFIG_SERVER_MODE: 'False'
# volumes:
# - ${DOCKER_VOLUMN:-~/.docker/data}/pgadmin:/root/.pgadmin
# ports:
# - '${PGADMIN_PORT:-5050}:80'
# networks:
# - node-network
# restart: unless-stopped
redis:
image: redis:alpine
privileged: true
ports:
- 6379:6379
networks:
- node-network
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.5.1
environment:
- xpack.security.enabled=false
- 'discovery.type=single-node'
ports:
- 9200:9200
networks:
- node-network
kibana:
image: docker.elastic.co/kibana/kibana:8.5.1
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
networks:
- node-network
depends_on:
- elasticsearch
ports:
- 5601:5601
volumes:
dbdata:
pgadmin:
node_modules:
networks:
node-network:
driver: bridge