forked from diaspora/diaspora
-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.logging.yml
70 lines (65 loc) · 1.46 KB
/
docker-compose.logging.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
version: "2"
services:
web:
environment:
- "RAILS_ENV=development"
- "PORT=3000"
- "constraint:node!=aws-manager"
- "constraint:node!=aws-store"
networks:
- backend
volumes:
- '${DIASPORA_DIR}/diaspora.yml:/home/diaspora/diaspora/config/diaspora.yml'
- '${DIASPORA_DIR}/database.yml:/home/diaspora/diaspora/config/database.yml'
logging:
driver: syslog
options:
syslog-address: "tcp://${SYSLOG}:514"
tag: "web"
nginx:
image: nginx:alpine
ports:
- "80:80"
networks:
- backend
environment:
- "constraint:node==aws-manager"
volumes:
- '${DIASPORA_DIR}/nginx.conf:/etc/nginx/nginx.conf'
- '${DIASPORA_DIR}/public:/srv/public'
logging:
driver: syslog
options:
syslog-address: "tcp://${SYSLOG}:514"
tag: "nginx"
db:
environment:
- "constraint:node==aws-store"
volumes:
- 'pgdata:/var/lib/postgresql/data'
networks:
- backend
restart: 'unless-stopped'
logging:
driver: syslog
options:
syslog-address: "tcp://${SYSLOG}:514"
tag: "db"
syslog:
image: bobrik/syslog-ng
environment:
- "constraint:node==aws-logger"
volumes:
- 'log:/var/log/syslog-ng'
restart: 'unless-stopped'
ports:
- "514:514/udp"
- "514:514"
networks:
backend:
driver: overlay
volumes:
pgdata:
driver: local
log:
driver: local