-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfluentd.docker-compose.yml
More file actions
64 lines (62 loc) · 1.44 KB
/
fluentd.docker-compose.yml
File metadata and controls
64 lines (62 loc) · 1.44 KB
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
version: "2"
services:
proxy:
image: quay.io/spesnova/nginx-example:latest
container_name: proxy
ports:
- 80:8080
volumes_from:
- web
depends_on:
- web
stop_signal: SIGQUIT
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
web:
build: .
command: [bundle, exec, puma, -C, config/puma.rb]
container_name: web
volumes:
- /app/tmp
- /app/public
depends_on:
- db
links:
- db
env_file: .env
stop_signal: SIGQUIT
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
environment:
- RACK_ENV=production
- RAILS_ENV=production
- DATABASE_URL=postgres://hello:world@db:5432/example
- SECRET_KEY_BASE=61f9fb4243fcf0a8caa6a141f5c03a66eb0be9e1568037fd0201deb31aa392644f9b70e7346d47ccda90bbfc2e8c261c674cc9133c10ab45e73caa02e6e2a2c0
db:
image: postgres:9.5.1
container_name: db
stop_signal: SIGTERM
environment:
- POSTGRES_USER=hello
- POSTGRES_PASSWORD=world
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
test:
image: quay.io/spesnova/infrataster:latest
volumes:
- ./test/container:/test/spec
depends_on:
- proxy
network_mode: "service:proxy"
fluentd:
image: fluent/fluentd:latest
volumes:
- /home/docker/log:/fluentd/log
ports:
- 24224:24224