first commit
This commit is contained in:
parent
70345db90f
commit
937e174367
|
|
@ -5,9 +5,17 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- env/mysql.env
|
- env/mysql.env
|
||||||
volumes:
|
volumes:
|
||||||
- database_volume:/var/lib/mysql
|
- ./data/database_volume:/var/lib/mysql
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:3306:3306"
|
- "127.0.0.1:3306:3306"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
restart: always
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: "1"
|
||||||
|
memory: 150M
|
||||||
|
|
||||||
passbolt:
|
passbolt:
|
||||||
image: passbolt/passbolt:latest-ce
|
image: passbolt/passbolt:latest-ce
|
||||||
|
|
@ -19,17 +27,40 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- env/passbolt.env
|
- env/passbolt.env
|
||||||
volumes:
|
volumes:
|
||||||
- gpg_volume:/etc/passbolt/gpg
|
- ./data/gpg_volume:/etc/passbolt/gpg
|
||||||
- images_volume:/usr/share/php/passbolt/webroot/img/public
|
- ./data/images_volume:/usr/share/php/passbolt/webroot/img/public
|
||||||
command: ["/usr/bin/wait-for.sh", "-t", "0", "db:3306", "--", "/docker-entrypoint.sh"]
|
command: ["/usr/bin/wait-for.sh", "-t", "0", "db:3306", "--", "/docker-entrypoint.sh"]
|
||||||
ports:
|
#ports:
|
||||||
- 80:80
|
# - 80:80#
|
||||||
- 443:443
|
# - 443:443#
|
||||||
#Alternatively for non-root images:
|
#Alternatively for non-root images:
|
||||||
# - 80:8080
|
# - 80:8080
|
||||||
# - 443:4433
|
# - 443:4433
|
||||||
|
labels:
|
||||||
|
traefik.enable: "true"
|
||||||
|
traefik.docker.network: "frontend"
|
||||||
|
|
||||||
volumes:
|
traefik.http.routers.passbolt-http.rule: "Host(`${DOMAIN}`)"
|
||||||
database_volume:
|
traefik.http.routers.passbolt-http.entrypoints: "entrypoints-http"
|
||||||
gpg_volume:
|
traefik.http.routers.passbolt-http.middlewares: "redirect"
|
||||||
images_volume:
|
traefik.http.middlewares.redirect.redirectscheme.scheme: "https"
|
||||||
|
|
||||||
|
traefik.http.routers.passbolt-https.rule: "Host(`${DOMAIN}`)"
|
||||||
|
traefik.http.routers.passbolt-https.entrypoints: "entrypoints-https"
|
||||||
|
traefik.http.routers.passbolt-https.tls.certresolver: "myresolver"
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
restart: always
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: "1"
|
||||||
|
memory: 200M
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
networks:
|
||||||
|
frontend:
|
||||||
|
external: true
|
||||||
|
backend:
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# URL
|
# URL
|
||||||
APP_FULL_BASE_URL=https://passbolt.local
|
APP_FULL_BASE_URL=https://passbolt.guillaume.laraffinerie.re
|
||||||
|
|
||||||
# Database settings
|
# Database settings
|
||||||
DATASOURCES_DEFAULT_HOST=db
|
DATASOURCES_DEFAULT_HOST=db
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue