mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2025-05-10 05:23:59 +00:00
Update docker-compose.yml
fix yml struture, comments and add container names
This commit is contained in:
parent
70ca8e43e5
commit
92920ed4c9
@ -1,7 +1,10 @@
|
|||||||
version: '3.9'
|
version: '3.9'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mariadb:10.3
|
image: mariadb:10.3
|
||||||
|
container_name: passbolt-db
|
||||||
|
hostname: passbolt-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
MYSQL_RANDOM_ROOT_PASSWORD: "true"
|
MYSQL_RANDOM_ROOT_PASSWORD: "true"
|
||||||
@ -12,14 +15,14 @@ services:
|
|||||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/passbolt/mariadb:/var/lib/mysql
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/passbolt/mariadb:/var/lib/mysql
|
||||||
|
|
||||||
passbolt:
|
passbolt:
|
||||||
image: passbolt/passbolt:latest-ce
|
image: passbolt/passbolt:latest-ce # alternatively, you can use the rootless image passbolt/passbolt:latest-ce-non-root
|
||||||
#Alternatively you can use rootless:
|
container_name: passbolt
|
||||||
#image: passbolt/passbolt:latest-ce-non-root
|
hostname: passbolt
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
environment:
|
environment:
|
||||||
APP_FULL_BASE_URL: https://passbolt.local
|
APP_FULL_BASE_URL: https://passbolt.example.com # adjust
|
||||||
DATASOURCES_DEFAULT_HOST: "db"
|
DATASOURCES_DEFAULT_HOST: "db"
|
||||||
DATASOURCES_DEFAULT_USERNAME: "passbolt"
|
DATASOURCES_DEFAULT_USERNAME: "passbolt"
|
||||||
DATASOURCES_DEFAULT_PASSWORD: "P4ssb0lt"
|
DATASOURCES_DEFAULT_PASSWORD: "P4ssb0lt"
|
||||||
@ -31,6 +34,5 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
#Alternatively for non-root images:
|
# - 80:8080 # alternative port mappings if rootless image is used
|
||||||
# - 80:8080
|
# - 443:4433 # alternative port mappings if rootless image is used
|
||||||
# - 443:4433
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user