docker-compose environment for the entire v.st system
https://v.st/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
version: '3'
|
|
services:
|
|
database:
|
|
image: postgres:13.4-alpine
|
|
environment:
|
|
- POSTGRES_USER=hedgedoc
|
|
- POSTGRES_PASSWORD=password
|
|
- POSTGRES_DB=hedgedoc
|
|
volumes:
|
|
- ./data/database:/var/lib/postgresql/data
|
|
restart: always
|
|
app:
|
|
# Make sure to use the latest release from https://hedgedoc.org/latest-release
|
|
image: quay.io/hedgedoc/hedgedoc:1.9.3
|
|
env_file:
|
|
- ../env.production
|
|
- env.production
|
|
environment:
|
|
- CMD_DB_URL=postgres://hedgedoc:password@database:5432/hedgedoc
|
|
- CMD_DOMAIN=docs.example.com
|
|
#- CMD_URL_ADDPORT=true
|
|
- CMD_OAUTH2_USER_PROFILE_URL=https://login.example.com/realms/spacestation/protocol/openid-connect/userinfo
|
|
- CMD_OAUTH2_USER_PROFILE_USERNAME_ATTR=preferred_username
|
|
- CMD_OAUTH2_USER_PROFILE_DISPLAY_NAME_ATTR=name
|
|
- CMD_OAUTH2_USER_PROFILE_EMAIL_ATTR=email
|
|
- CMD_OAUTH2_TOKEN_URL=https://login.example.com/realms/spacestation/protocol/openid-connect/token
|
|
- CMD_OAUTH2_AUTHORIZATION_URL=https://login.example.com/realms/spacestation/protocol/openid-connect/auth
|
|
- CMD_OAUTH2_CLIENT_ID=hedgedoc
|
|
- CMD_OAUTH2_PROVIDERNAME=Keycloak
|
|
volumes:
|
|
- ./data/uploads:/hedgedoc/public/uploads
|
|
ports:
|
|
- "3000:3000"
|
|
restart: always
|
|
depends_on:
|
|
- database
|
|
|