-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (56 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
version: '2.2'
services:
django:
container_name: django
extends:
file: ./back/docker-compose.yml
service: django
expose:
- "5959"
nginx:
container_name: nginx
restart: always
build: ./nginx/
ports:
- "80:80"
- "443:443"
environment:
- NGINX_HOST=beatitud.io
command: /bin/sh -c "envsubst '$${NGINX_HOST}' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf && exec nginx -g 'daemon off;'"
volumes:
- web:/data/web
- ./nginx/nginx.conf.template:/etc/nginx/nginx.conf.template:ro
- ./nginx/logs:/etc/nginx/logs
- /root/certs-data/:/data/letsencrypt/:ro
- /etc/letsencrypt/:/etc/letsencrypt/:ro
depends_on:
- django
showcase:
container_name: showcase
extends:
file: ./showcase/docker-compose.yml
service: showcase
showcase_angular:
container_name: showcase_angular
extends:
file: ./showcase-angular/docker-compose.yml
service: angular_showcase
metricbeat:
restart: always
container_name: metricbeat
image: docker.elastic.co/beats/metricbeat:6.5.2
environment:
- ELASTICSEARCH_HOST=search-beatitud-pxtyvfcgwra3pwfl34qhw4bejm.eu-west-3.es.amazonaws.com
- KIBANA_HOST=search-beatitud-pxtyvfcgwra3pwfl34qhw4bejm.eu-west-3.es.amazonaws.com/_plugin/kibana
- ELASTICSEARCH_USERNAME=""
- ELASTICSEARCH_PASSWORD=""
# disable strict permission checks
command: ["--strict.perms=false", "-system.hostfs=/hostfs"]
ports:
- "333:333"
volumes:
nginx:
django:
showcase:
metricbeat:
web: