forked from uspdev/impressoras
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (77 loc) · 2.51 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
# references
# https://doc.traefik.io/traefik/v2.0/user-guides/docker-compose/acme-http/
# https://github.com/bluepuma77/traefik-best-practice/blob/main/docker-traefik-dashboard-letsencrypt/docker-compose.yml
services:
proxy:
image: traefik:v3.1.4
restart: always
command:
- --api.dashboard=true
- --providers.docker.network=proxy
- --providers.docker.exposedbydefault=false
- --entryPoints.web.address=:80
- --entryPoints.web.http.redirections.entryPoint.to=websecure
- --entryPoints.websecure.address=:443
- --certificatesresolvers.le.acme.httpchallenge=true
- --certificatesresolvers.le.acme.httpchallenge.entrypoint=web
- --certificatesresolvers.le.acme.email=${LETSENCRYPT_ADMIN}
- --certificatesresolvers.le.acme.storage=/letsencrypt/acme.json
ports:
- 80:80
- 443:443
volumes:
- letsencrypt:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock
labels:
- traefik.enable=true
- traefik.http.routers.traefik.entrypoints=websecure
- traefik.http.routers.traefik.rule=Host(`${TRAEFIK_HOSTNAME}`)
- traefik.http.routers.traefik.tls.certresolver=le
- traefik.http.routers.traefik.service=api@internal
- traefik.http.routers.traefik.middlewares=auth_user
- traefik.http.middlewares.auth_user.basicauth.users=${TRAEFIK_ADMIN}
networks:
- proxy
mariadb:
image: mariadb:11.5.2
restart: always
volumes:
- mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
impressoras:
image: uspdev/impressoras:2.2.0
restart: always
env_file: .env
volumes:
- impressoes:/var/www/html/storage/app
labels:
- traefik.enable=true
- traefik.http.routers.impressoras.entrypoints=websecure
- traefik.http.routers.impressoras.rule=Host(`${IMPRESSORAS_HOSTNAME}`)
- traefik.http.routers.impressoras.tls.certresolver=le
networks:
- proxy
- default
spdf:
image: frooodle/s-pdf:0.29.0
restart: always
environment:
- SYSTEM_DEFAULTLOCALE=pt-BR
labels:
- traefik.enable=true
- traefik.http.routers.spdf.entrypoints=websecure
- traefik.http.routers.spdf.rule=Host(`${SPDF_HOSTNAME}`)
- traefik.http.routers.spdf.tls.certresolver=le
networks:
- proxy
volumes:
letsencrypt:
mariadb:
impressoes:
networks:
proxy:
name: proxy