forked from EsupPortail/Esup-Pod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev-with-volumes.yml
executable file
·54 lines (49 loc) · 1.33 KB
/
docker-compose-dev-with-volumes.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
x-pod-volumes: &pod-volumes
- .:/usr/src/app
x-elasticsearch-volumes: &elasticsearch-volumes
- ./dockerfile-dev-with-volumes/config/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
services:
pod:
container_name: pod-dev-with-volumes
hostname: pod.localhost
build:
context: .
dockerfile: dockerfile-dev-with-volumes/pod/Dockerfile
depends_on:
- elasticsearch
- redis
env_file:
- ./.env.dev
ports:
- 8000:8000
volumes: *pod-volumes
elasticsearch:
container_name: elasticsearch-with-volumes
hostname: elasticsearch.localhost
build:
context: .
dockerfile: dockerfile-dev-with-volumes/elasticsearch/dockerfile-elasticsearch-dev
ports:
- 9200:9200
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
volumes: *elasticsearch-volumes
redis:
container_name: redis-with-volumes
hostname: redis.localhost
image: ${REDIS_TAG}
env_file:
- ./.env.dev
ports:
- 6379:6379
# redis-commander:
# container_name: redis-commander
# hostname: redis-commander.localhost
# image: rediscommander/redis-commander:latest
# restart: always
# environment:
# - REDIS_HOSTS=local:redis:6379
# ports:
# - "8081:8081"