This repository has been archived by the owner on Apr 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
149 lines (144 loc) · 4.1 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
version: '2.1'
services:
auth:
image: vibioh/auth
command:
- -corsHeaders
- Authorization
- -corsCredentials
- -corsOrigin
- https://dashboard.vibioh.fr
- -githubClientId
- ${GITHUB_OAUTH_CLIENT_ID}
- -githubClientSecret
- ${GITHUB_OAUTH_CLIENT_SECRET}
- -githubScopes
- user:email
- -tracingAgent
- monitoring_jaeger:6831
- -tracingName
- dashboard_auth
labels:
traefik.frontend.passHostHeader: 'true'
traefik.frontend.rule: 'Host: dashboard-auth.vibioh.fr'
traefik.protocol: 'https'
traefik.port: '1080'
traefik.frontend.rateLimit.extractorFunc: 'client.ip'
traefik.frontend.rateLimit.rateSet.first.period: '60s'
traefik.frontend.rateLimit.rateSet.first.average: '100'
traefik.frontend.rateLimit.rateSet.first.burst: '200'
logging:
driver: json-file
options:
max-size: '10m'
user: '${CONTAINER_USER}'
group_add:
- '${DOCKER_GROUP}'
restart: on-failure:5
read_only: true
cpu_shares: 128
mem_limit: 67108864
security_opt:
- no-new-privileges
api:
image: vibioh/dashboard-api
command:
- -dockerWs
- ^dashboard-api.vibioh.fr$$
- -dockerVersion
- '1.32'
- -dockerContainerUser
- ${CONTAINER_USER}
- -mailerURL
- ${MAILER_URL}
- -mailerUser
- ${MAILER_USER}
- -mailerPass
- ${MAILER_PASS}
- -authUrl
- https://dashboard-auth.vibioh.fr
- -authUsers
- vibioh:admin,eponae:multi,simrobin:multi
- -corsHeaders
- Content-Type,Authorization
- -corsMethods
- GET,POST,DELETE
- -corsCredentials
- -corsOrigin
- https://dashboard.vibioh.fr
- -tracingAgent
- monitoring_jaeger:6831
- -tracingName
- dashboard_api
labels:
traefik.frontend.passHostHeader: 'true'
traefik.frontend.rule: 'Host: dashboard-api.vibioh.fr'
traefik.protocol: 'https'
traefik.port: '1080'
traefik.frontend.rateLimit.extractorFunc: 'client.ip'
traefik.frontend.rateLimit.rateSet.first.period: '60s'
traefik.frontend.rateLimit.rateSet.first.average: '100'
traefik.frontend.rateLimit.rateSet.first.burst: '200'
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
logging:
driver: json-file
options:
max-size: '10m'
user: '${CONTAINER_USER}'
group_add:
- '${DOCKER_GROUP}'
restart: on-failure:5
read_only: true
cpu_shares: 128
mem_limit: 67108864
security_opt:
- no-new-privileges
front:
image: vibioh/dashboard-ui
command:
- -spa
- -env
- API_URL,WS_URL,AUTH_URL,BASIC_AUTH_ENABLED,GITHUB_AUTH_ENABLED,ENVIRONMENT,ROLLBAR_TOKEN
- -csp
- "default-src 'self'; base-uri 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' cdnjs.cloudflare.com/ajax/libs/rollbar.js/; style-src 'self' 'unsafe-inline'; connect-src 'self' wss: dashboard-api.vibioh.fr dashboard-auth.vibioh.fr api.rollbar.com"
- -headers
- X-UA-Compatible:ie=edge
- -tracingAgent
- monitoring_jaeger:6831
- -tracingName
- dashboard_ui
labels:
traefik.frontend.passHostHeader: 'true'
traefik.frontend.rule: 'Host: dashboard.vibioh.fr'
traefik.protocol: 'https'
traefik.port: '1080'
traefik.frontend.rateLimit.extractorFunc: 'client.ip'
traefik.frontend.rateLimit.rateSet.first.period: '60s'
traefik.frontend.rateLimit.rateSet.first.average: '100'
traefik.frontend.rateLimit.rateSet.first.burst: '200'
environment:
ENVIRONMENT: 'prod'
API_URL: 'https://dashboard-api.vibioh.fr'
WS_URL: 'wss://dashboard-api.vibioh.fr/ws'
AUTH_URL: 'https://dashboard-auth.vibioh.fr'
BASIC_AUTH_ENABLED: 'false'
GITHUB_AUTH_ENABLED: 'true'
ROLLBAR_TOKEN: '${ROLLBAR_CLIENT_TOKEN}'
logging:
driver: json-file
options:
max-size: '10m'
user: '${CONTAINER_USER}'
group_add:
- '${DOCKER_GROUP}'
restart: on-failure:5
read_only: true
cpu_shares: 128
mem_limit: 67108864
security_opt:
- no-new-privileges
networks:
default:
external:
name: traefik