forked from n7consulting/Incipio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.dist
60 lines (55 loc) · 1.83 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
version: "2"
services:
web:
build: .
environment:
# That parameter is set to prod by the auto-install script.
# Don't forget to set it manually to prod if you don't use the auto-install script
SYMFONY_ENV: dev
TECHNICAL_FROM: REPLACE_WITH_YOUR_EMAIL
TECHNICAL_TO: REPLACE_WITH_YOUR_EMAIL
TECHNICAL_HOST: REPLACE_WITH_YOUR_HOST
depends_on:
- database
- mailer
volumes:
- .:/app
restart: "no"
labels:
- "traefik.backend=web-jeyser"
- "traefik.frontend.rule=Host:REPLACE_WITH_YOUR_HOST"
database:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: changeme
MYSQL_DATABASE: jeyser
MYSQL_USER: jeyser
MYSQL_PASSWORD: jeyser
volumes:
# mysql
- "./docker/mysql:/var/lib/mysql"
restart: "no"
labels:
- traefik.enable=false
traefik:
image: traefik:cancoillotte
command: |
-c /dev/null --web --docker --docker.domain=docker.localhost --logLevel=DEBUG
--defaultEntryPoints='http,https' --entryPoints='Name:http Address::80 Redirect.EntryPoint:https'
--entryPoints='Name:https Address::443 TLS' --acme.entryPoint=https
--acme.email='REPLACE_WITH_YOUR_EMAIL' --acme.storage=/acme.json --acme.onDemand=true
--acme.httpChallenge.entryPoint=http
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: "no"
labels:
- traefik.enable=false
mailer:
build: ./docker/mail
restart: "no"
labels:
- traefik.enable=false