-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
85 lines (78 loc) · 2.19 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
services:
app:
build: .
env_file:
- .env
- .env.local
ports:
- 8080:80
worker:
command: 'worker'
build: .
env_file:
- .env
- .env.local
redis:
image: redis:alpine
ports:
- 6379:6379
rabbitmq:
image: rabbitmq:3.9-management-alpine
hostname: 'mabbit'
ports:
- 5672:5672
- 15672:15672
volumes:
- rabbitmq:/var/lib/rabbitmq
# blackfire:
# image: blackfire/blackfire
# environment:
# - BLACKFIRE_SERVER_ID
# - BLACKFIRE_SERVER_TOKEN
# networks:
# - local
elasticsearch:
build: docker/elasticsearch
environment:
- 'discovery.type=single-node'
- 'bootstrap.memory_lock=true'
- 'ES_JAVA_OPTS=-Xms1024m -Xmx1024m'
- 'xpack.security.enabled=false'
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
volumes:
- esdata:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:${ELK_STACK_VERSION}
ports:
- 5601:5601
depends_on:
- elasticsearch
varnish:
build:
context: docker/varnish
platform: linux/arm/v7
command:
- '/bin/sh'
- '-c'
- >
sed -i "s/_BACKEND_HOST_/$${BACKEND_HOST}/g" /etc/varnish/default.vcl &&
sed -i "s/_BACKEND_PORT_/$${BACKEND_PORT}/g" /etc/varnish/default.vcl &&
sed -i "s/_PUBLIC_PORT_/$${PUBLIC_PORT}/g" /etc/varnish/default.vcl &&
varnishd -F -f /etc/varnish/default.vcl -t 0
ports:
- '${VARNISH_PUBLIC_PORT}:80'
environment:
- 'BACKEND_HOST=${VARNISH_BACKEND_HOST}'
- 'BACKEND_PORT=${VARNISH_BACKEND_PORT}'
- 'PUBLIC_PORT=${VARNISH_PUBLIC_PORT}'
- 'DEBUG=${VARNISH_DEBUG}'
tmpfs:
- /var/lib/varnish/varnishd:exec
volumes:
esdata:
rabbitmq: