forked from n7consulting/Incipio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.dist
74 lines (69 loc) · 2.51 KB
/
docker-compose.yml.dist
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
version: "2"
services:
web:
build:
context: .
dockerfile: ./docker/web/Dockerfile
env_file:
- .env
depends_on:
- database
- mailer
volumes:
- ./var/documents:/app/var/documents
- ./var/key_value_store:/app/var/key_value_store
- ./var/sessions:/app/var/sessions
- ./var/log:/app/var/log
# Uncomment following line when in dev
# - .:/app
restart: "no"
labels:
- traefik.http.routers.web.rule=Host(`REPLACE_WITH_YOUR_HOST`)
- traefik.http.routers.web.entrypoints=web
- traefik.http.middlewares.https-redirect.redirectscheme.scheme=https
- traefik.http.routers.web.middlewares=https-redirect@docker
- traefik.http.routers.web-secure.rule=Host(`REPLACE_WITH_YOUR_HOST`)
- traefik.http.routers.web-secure.entrypoints=web-secure
- traefik.http.routers.web-secure.tls=true
- traefik.http.routers.web-secure.tls.certresolver=letsencrypt
database:
image: mysql:5
environment:
MYSQL_ROOT_PASSWORD: changeme
MYSQL_DATABASE: jeyser
MYSQL_USER: jeyser
MYSQL_PASSWORD: jeyser
volumes:
- "./docker/mysql:/var/lib/mysql"
restart: "no"
labels:
- traefik.enable=false
traefik:
image: traefik:2.0
command:
- "--log.level=INFO"
- "--providers.docker"
- "--metrics.prometheus.entrypoint=metrics"
- "--ping"
- "--entryPoints.web.address=:80"
- "--entryPoints.web-secure.address=:443"
- "--certificatesresolvers.letsencrypt.acme.httpChallenge=true"
- "--certificatesResolvers.letsencrypt.acme.httpchallenge.entryPoint=web"
- "--certificatesResolvers.letsencrypt.acme.email=REPLACE_WITH_YOUR_EMAIL"
- "--certificatesResolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
- "--certificatesResolvers.letsencrypt.acme.keytype=EC256"
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "./docker/traefik/letsencrypt:/letsencrypt"
restart: "no"
labels:
- traefik.enable=false
mailer:
build: ./docker/mail
restart: "no"
labels:
- traefik.enable=false