-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
87 lines (80 loc) · 1.98 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
85
86
87
version: '3'
services:
db:
restart: always
image: postgres:latest
environment:
POSTGRES_DB: "${POSTGRES_DB}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_HOST_AUTH_METHOD: "${POSTGRES_HOST_AUTH_METHOD}"
PGADMIN_DEFAULT_EMAIL: "${PGADMIN_DEFAULT_EMAIL}"
PGADMIN_DEFAULT_PASSWORD: "${PGADMIN_DEFAULT_PASSWORD}"
networks:
- amadeus_network
volumes:
- pgdata:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "${PGADMIN_DEFAULT_EMAIL}"
PGADMIN_DEFAULT_PASSWORD: "${PGADMIN_DEFAULT_PASSWORD}"
ports:
- "${PGADMIN_PORT}:80"
depends_on:
- db
networks:
- amadeus_network
web:
image: amadeus:latest
build: .
ports:
- "${AMADEUS_PORT}:8000"
environment:
POSTGRES_DB: "${POSTGRES_DB}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_HOST: "${POSTGRES_HOST}"
POSTGRES_PORT: "${POSTGRES_PORT}"
ELASTICSEARCH_URL: "${ELASTICSEARCH_URL}"
deploy:
resources:
limits:
cpus: '4'
memory: 4000M
volumes:
- .:/code
depends_on:
- db
stdin_open: true
tty: true
networks:
- amadeus_network
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.1
environment:
- "discovery.type=single-node"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elasticsearch:/usr/share/elasticsearch/data
networks:
- amadeus_network
kibana:
image: docker.elastic.co/kibana/kibana:7.9.1
ports:
- "${KIBANA_PORT}:5601"
environment:
ELASTICSEARCH_URL: "${ELASTICSEARCH_URL}"
ELASTICSEARCH_HOSTS: "${ELASTICSEARCH_URL}"
networks:
- amadeus_network
networks:
amadeus_network:
driver: bridge
volumes:
elasticsearch:
pgdata: