-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
passbolt.yml
61 lines (57 loc) · 2.18 KB
/
passbolt.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
# DOMAIN=example.com docker stack deploy -c passbolt.yml passbolt
# su -m -c "/usr/share/php/passbolt/bin/cake passbolt register_user -u [email protected] -f firstname -l lastname -r admin" -s /bin/sh www-data
# UPDATE users SET role_id = 'xyz' WHERE id = 'xyz'; # Set admin role
services:
passbolt:
image: passbolt/passbolt:${VERSION:-4.9.1-1-ce}
command: "/usr/bin/wait-for.sh -t 0 mariadb:3306 -- /docker-entrypoint.sh"
environment:
- APP_FULL_BASE_URL=${SCHEME:-https}://${DOMAIN:-passbolt.localhost}
- DATASOURCES_DEFAULT_HOST=mariadb
- DATASOURCES_DEFAULT_USERNAME=passbolt
- DATASOURCES_DEFAULT_PASSWORD=myp@ssw0rd
- DATASOURCES_DEFAULT_DATABASE=passbolt
- DATASOURCES_DEFAULT_PORT=3306
- PASSBOLT_REGISTRATION_PUBLIC=${PASSBOLT_REGISTRATION_PUBLIC:-false}
- EMAIL_DEFAULT_FROM=${SMTP_FROM:[email protected]}
- EMAIL_TRANSPORT_DEFAULT_HOST=${SMTP_HOST}
- EMAIL_TRANSPORT_DEFAULT_PORT=${SMTP_PORT:-587}
- EMAIL_TRANSPORT_DEFAULT_USERNAME=${SMTP_USER}
- EMAIL_TRANSPORT_DEFAULT_PASSWORD=${SMTP_PASSWORD}
- EMAIL_TRANSPORT_DEFAULT_TLS=${SMTP_TLS:-true}
volumes:
- ${VOLUME_PATH}gpg:/etc/passbolt/gpg
- ${VOLUME_PATH}jwt:/etc/passbolt/jwt
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.passbolt-${NUMBER:-1}.rule=Host(`${DOMAIN:-passbolt.localhost}`)
- traefik.http.routers.passbolt-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.passbolt-${NUMBER:-1}.service=passbolt-${NUMBER:-1}
- traefik.http.routers.passbolt-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.passbolt-${NUMBER:-1}.loadbalancer.server.port=80
networks:
- internal
- traefik
mariadb:
image: mariadb:${MARIADB_VERSION:-10.5.9}
volumes:
- ${VOLUME_PATH}mariadb:/var/lib/mysql:cached
environment:
- MYSQL_ROOT_PASSWORD=myp@ssw0rd
- MYSQL_DATABASE=passbolt
- MYSQL_USER=passbolt
- MYSQL_PASSWORD=myp@ssw0rd
networks:
- internal
volumes:
mariadb:
gpg:
jwt:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net