forked from EsupPortail/Esup-Pod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-full-dev-with-volumes.yml
executable file
·90 lines (82 loc) · 2.18 KB
/
docker-compose-full-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
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
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-back:
container_name: pod-back-with-volumes
hostname: pod.localhost
build:
context: .
dockerfile: dockerfile-dev-with-volumes/pod-back/Dockerfile
depends_on:
- elasticsearch
- redis
env_file:
- ./.env.dev
ports:
- 8000:8000
volumes: *pod-volumes
pod-encode:
container_name: pod-encode-with-volumes
hostname: pod-encode.localhost
build:
context: .
dockerfile: dockerfile-dev-with-volumes/pod-encode/Dockerfile
depends_on:
- pod-back
env_file:
- ./.env.dev
volumes: *pod-volumes
pod-transcript:
container_name: pod-transcript-with-volumes
hostname: pod-transcript.localhost
build:
context: .
dockerfile: dockerfile-dev-with-volumes/pod-transcript/Dockerfile
depends_on:
- pod-back
env_file:
- ./.env.dev
volumes: *pod-volumes
pod-xapi:
container_name: pod-xapi-with-volumes
hostname: pod-xapi.localhost
build:
context: .
dockerfile: dockerfile-dev-with-volumes/pod-xapi/Dockerfile
depends_on:
- pod-back
env_file:
- ./.env.dev
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"