-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
68 lines (61 loc) · 1.05 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
version: '2'
services:
data:
build: ./data/owncloud
postgres_data:
build: ./data/db
postgres:
build: ./db
depends_on:
- postgres_data
volumes_from:
- postgres_data:rw
expose:
- 5432
networks:
- backend_db
app:
build: ./nginx
depends_on:
- data
- postgres
volumes_from:
- data:rw
links:
- postgres:postgres
expose:
- 80
networks:
- backend_app
- backend_db
elasticsearch:
image: elasticsearch:latest
command: elasticsearch -Des.network.host=0.0.0.0
expose:
- 9200
- 9300
networks:
- backend_app
waf:
build: ./waf
depends_on:
- app
- elasticsearch
links:
- app:owncloud
- elasticsearch:elasticsearch
environment:
- LEARNING_MODE=yes
- PROXY_REDIRECT_IP=owncloud
ports:
- "443:443"
networks:
- frontend
- backend_app
networks:
frontend:
driver: bridge
backend_db:
driver: bridge
backend_app:
driver: bridge