-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (39 loc) · 841 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (39 loc) · 841 Bytes
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
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.8.0
container_name: elasticsearch
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ports:
- 9200:9200
- 9300:9300
api2:
build:
context: api2/ #Dockerfile path
dockerfile: Dockerfile #Dockerfile name
container_name: api2
depends_on:
- elasticsearch
command: python api2/api2/manage.py runserver 0.0.0.0:8002
volumes:
- .:/django
ports:
- 8002:8002
restart: always
tty: true
links:
- elasticsearch
api1:
build:
context: api1/
dockerfile: Dockerfile
container_name: api1
ports:
- 8001:8001
depends_on:
- api2
links:
- api2
command: go run main.go