-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose.yml
105 lines (91 loc) · 2.36 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
version: '3.4'
x-timezone: &default_timezone
TZ: "America/Chicago"
x-network: &default_network
dns: '1.1.1.1'
dns_search: 'dallasmakerspace.org'
networks:
- public
x-proxy-env: &default_proxy
- http_proxy="http://proxy.local:8118"
- https_proxy="https://proxy.local:8118"
- socks_proxy="proxy.local:9051"
- no_proxy="127.0.0.1,localhost,.localdomain,.local"
- HTTP_PROXY="http://proxy.local:8118"
- HTTPS_PROXY="https://proxy.local:8118"
- SOCKS_PROXY="proxy.local:9051"
- NO_PROXY="127.0.0.1,localhost,.localdomain,.local"
x-logging: &default_logging
driver: 'syslog'
options:
syslog-address: 'udp://telegraf.local:6514'
x-deployment: &default_deployment
restart_policy:
condition: on-failure
mode: replicated
replicas: 1
x-platform-enable: &enable_paas
traefik.frontend.priority: "5"
traefik.frontend.entryPoints: "http, https"
traefik.docker.network: "public"
traefik.enable: "true"
traefik.default.protocol: "http"
orbiter: "true"
orbiter.up: "3"
orbiter.down: "1"
x-platform-disable: &disable_paas
traefik.enable: "false"
orbiter: "false"
services:
db:
image: mariadb:5.5
network:
default:
aliases:
- "db"
ports:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: 'cakephp'
MYSQL_DATABASE: 'cakephp'
app:
image: dallas-makerspace/inventory:latest
links:
- 'db'
depends_on:
- 'db'
ports:
- "80/tcp"
environment:
DEBUG: 'true'
DB_HOST: 'db' # Leave this as 'db' to utilize MySQL container(s)
DB_USERNAME: 'root'
DB_PASSWORD: 'cakephp'
DB_DATABASE: 'cakephp'
DB_SEED: 'DatabaseSeed'
EMAIL_HOST: 'localhost'
EMAIL_PORT: '25'
EMAIL_TIMEOUT: '30'
EMAIL_USERNAME: 'user'
EMAIL_PASSWORD: 'secret'
EMAIL_TLS: 'false'
REPO: 'https://github.com/Dallas-Makerspace/inventory.git'
REPO_HOST: 'github.com'
<< : *default_network
networks:
- public
- default
deploy:
<< : *default_deployment
labels:
<< : *enable_paas
traefik.frontend.rule: 'Host:inventory.dallasmakerspace.org'
traefik.port: "80"
networks:
public:
external:
name: "public"
default: {}
...
# vim: set sw=2 sts=2 ts=2 et ai numbers list :