-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
77 lines (72 loc) · 2.02 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
services:
traefik:
image: "traefik:v3.2"
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--accesslog=true"
- "--entryPoints.web.address=:80"
# TLS
- "--entryPoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
- "--certificatesresolvers.myresolver.acme.email=postmaster@example.com"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "letsencrypt_volume:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- tpm_network
teampasswordmanager:
image: teampasswordmanager/teampasswordmanager:latest
depends_on:
- mysql
ports:
- "8081:80"
volumes:
- tpm_volume:/var/www/html
networks:
- tpm_network
environment:
- TPM_SERVER_TIMEZONE=Etc/UTC
- TPM_PHP_TIMEZONE=Etc/UTC
- TPM_ENCRYPT_DB_CONFIG=0
- TPM_CONFIG_HOSTNAME=mysql
- TPM_CONFIG_PORT=3306
- TPM_CONFIG_USERNAME=tpm_user
- TPM_CONFIG_PASSWORD=tpm_password
- TPM_CONFIG_DATABASE=tpm_database
- TPM_UPGRADE=0
labels:
- "traefik.enable=true"
- "traefik.http.routers.teampasswordmanager.rule=Host(`teampasswordmanager.localhost`)"
- "traefik.http.routers.teampasswordmanager.entrypoints=websecure"
- "traefik.http.routers.teampasswordmanager.tls.certresolver=myresolver"
mysql:
image: mysql:5.7
ports:
- "13306:3306"
volumes:
- tpm_mysqldata:/var/lib/mysql
networks:
- tpm_network
environment:
- MYSQL_USER=tpm_user
- MYSQL_PASSWORD=tpm_password
- MYSQL_DATABASE=tpm_database
- MYSQL_ROOT_PASSWORD=password5.7
networks:
tpm_network:
driver: "bridge"
volumes:
tpm_mysqldata:
driver: "local"
tpm_volume:
driver: "local"
letsencrypt_volume:
driver: "local"