-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (68 loc) · 1.55 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
version: '3.7'
services:
project_rest_api_dev:
container_name: project_rest_api_dev
restart: always
build: .
command: 'yarn dev'
ports:
- 3000:3000
volumes:
- .:/app
- /app/node_modules
networks:
- project_network
env_file:
- .env
depends_on:
- project_db_postgresql
- project_redis
- project_elasticsearch
project_db_postgresql:
container_name: project_db_postgresql
image: 'postgres'
restart: always
ports:
- 35432:5432
env_file:
- .env
environment:
- TZ=Asia/Jakarta
volumes:
- ./setup-postgresql.sh:/docker-entrypoint-initdb.d/setup-db.sh
- project_db_data:/var/lib/postgresql/data/
networks:
- project_network
project_redis:
container_name: project_redis
image: 'redis'
restart: always
ports:
- 6379:6379
volumes:
- project_redis_data:/var/lib/redis
- project_redis_data:/usr/local/etc/redis/redis.conf
networks:
- project_network
project_elasticsearch:
container_name: project_elasticsearch
image: 'docker.elastic.co/elasticsearch/elasticsearch:7.14.1'
environment:
- discovery.type=single-node
ports:
- 9200:9200
- 9300:9300
volumes:
- project_es_data:/usr/share/elasticsearch/data
networks:
- project_network
volumes:
project_db_data:
name: project_db_data
project_redis_data:
name: project_redis_data
project_es_data:
name: project_es_data
networks:
project_network:
name: project_network