-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.example
114 lines (98 loc) · 2.36 KB
/
docker-compose.yml.example
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: "3"
services:
#
# Splunk hits SEPTA's API regularly and ingests the data it gets.
#
splunk:
build:
context: .
dockerfile: "Dockerfile-splunk"
restart: "always"
#privileged: true
volumes:
- .:/mnt
#
# Our Splunk app
#
- ./splunk-apps/septa-stats:/opt/splunk/etc/apps/septa-stats
#
# Our Splunk data
#
- ./splunk-data/septa-stats:/opt/splunk/var/lib/splunk/septa_analytics/
ports:
- 8000:8000
environment:
- TZ=EST5EDT
- SPLUNK_START_ARGS=--accept-license
#
# Set our password for Splunk to something. This is a safety mechanism in case Splunk accidentally
# is exposed to the Internet.
#
# Note that if you set this to the default of 'password', the container will refuse to run. :-)
#
# If you need help picking a password you can remember, head on over to https://diceware.dmuth.org/
#
- SPLUNK_PASSWORD=password1
#
# Set up our web server
#
web:
image: nginx:alpine
ports:
- 8001:80
restart: "always"
volumes:
- .:/mnt
- ./splunk-apps/septa-stats/htdocs/:/htdocs
- ./nginx.conf:/etc/nginx/conf.d/default.conf
environment:
- TZ=EST5EDT
#
# Set up PHP running in FCGI mode
#
php:
image: php:7.2.8-fpm
#image: php:5.6.37-fpm
restart: "always"
volumes:
- .:/mnt
- ./splunk-apps/septa-stats/htdocs/:/htdocs
environment:
- TZ=EST5EDT
#
# Pass in our Splunk password (same as above) so that the PHP code can talk to Splunk.
#
- SPLUNK_PASSWORD=password1
#
# Set up Redis
#
redis:
image: redis:4-alpine
restart: "always"
volumes:
- .:/mnt
- ./redis-data:/data
environment:
- TZ=EST5EDT
command: redis-server /mnt/redis.conf
backup:
build:
context: .
dockerfile: "Dockerfile-backup"
restart: "always"
privileged: true
volumes:
- .:/mnt
environment:
- TZ=EST5EDT
#
# This *MUST* end in a slash!
#
- S3=s3://YOUR_S3_BUCKET_GOES_HERE/backups/
- LOOP_SECONDS=900
#- LOOP_SECONDS=3 # Debugging
- YESTERDAY_BACKUP_INTERVAL=4
#
# Pass in our Splunk password (same as above) so that the backup script can talk to Splunk
#
- SPLUNK_PASSWORD=password1