2018-07-30 21:17:47 +07:00
|
|
|
version: "3.2"
|
2018-02-02 02:36:09 +07:00
|
|
|
|
|
|
|
services:
|
2018-04-20 14:22:15 +07:00
|
|
|
traefik:
|
2018-06-13 08:40:43 +07:00
|
|
|
image: traefik:1.6-alpine
|
2018-04-20 14:22:15 +07:00
|
|
|
command:
|
2018-07-30 21:17:47 +07:00
|
|
|
- "--logLevel=INFO"
|
|
|
|
- "--defaultentrypoints=http,https"
|
|
|
|
- "--entryPoints=Name:http Address::80 Redirect.EntryPoint:https"
|
|
|
|
- "--entryPoints=Name:https Address::443 TLS"
|
|
|
|
- "--docker"
|
|
|
|
- "--docker.exposedbydefault=false"
|
|
|
|
- "--docker.domain=example.com"
|
|
|
|
- "--acme=false"
|
|
|
|
- "--acme.acmelogging=true"
|
|
|
|
- "--acme.email=webmaster@example.com"
|
|
|
|
- "--acme.storage=acme.json"
|
|
|
|
- "--acme.entryPoint=https"
|
|
|
|
- "--acme.onhostrule=true"
|
|
|
|
- "--acme.httpchallenge=true"
|
|
|
|
- "--acme.httpchallenge.entrypoint=http"
|
2018-02-02 02:36:09 +07:00
|
|
|
ports:
|
2018-04-20 14:22:15 +07:00
|
|
|
- target: 80
|
|
|
|
published: 80
|
|
|
|
protocol: tcp
|
|
|
|
- target: 443
|
|
|
|
published: 443
|
|
|
|
protocol: tcp
|
2018-02-02 02:36:09 +07:00
|
|
|
volumes:
|
2018-07-30 21:17:47 +07:00
|
|
|
- "./acme.json:/acme.json"
|
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
2018-02-02 02:36:09 +07:00
|
|
|
restart: always
|
|
|
|
|
|
|
|
app:
|
|
|
|
image: crazymax/jetbrains-license-server:latest
|
|
|
|
depends_on:
|
2018-04-20 14:22:15 +07:00
|
|
|
- traefik
|
2018-02-02 02:36:09 +07:00
|
|
|
volumes:
|
2018-07-30 21:17:47 +07:00
|
|
|
- "jetbrains-license-server:/data"
|
2018-04-20 14:22:15 +07:00
|
|
|
labels:
|
2018-07-30 21:17:47 +07:00
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.backend=jetbrains-license-server"
|
|
|
|
- "traefik.port=80"
|
|
|
|
- "traefik.frontend.rule=Host:jetbrains-license-server.example.com,an-other-host.example.com"
|
2018-02-02 02:36:09 +07:00
|
|
|
environment:
|
2018-07-30 21:17:47 +07:00
|
|
|
- "TZ=Europe/Paris"
|
|
|
|
- "JLS_VIRTUAL_HOSTS=jetbrains-license-server.example.com,an-other-host.example.com"
|
|
|
|
- "JLS_CONTEXT=/"
|
|
|
|
- "JLS_ACCESS_CONFIG=/data/access-config.json"
|
|
|
|
- "JLS_STATS_RECIPIENTS=webmaster@example.com,an-other-address@example.com"
|
|
|
|
- "JLS_REPORT_OUT_OF_LICENSE=90"
|
|
|
|
- "JLS_SMTP_SERVER=smtp.example.com"
|
|
|
|
- "JLS_SMTP_PORT=25"
|
|
|
|
- "JLS_SMTP_USERNAME=smtp@example.com"
|
|
|
|
- "JLS_SMTP_PASSWORD="
|
|
|
|
- "JLS_STATS_FROM=jetbrains@example.com"
|
2018-09-01 23:56:33 +07:00
|
|
|
- "JLS_STATS_TOKEN=0123456789ABCDEF"
|
2018-02-02 02:36:09 +07:00
|
|
|
restart: always
|
2018-04-20 14:22:15 +07:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
jetbrains-license-server:
|