diff --git a/docker-compose.yml b/docker-compose.yml index 41ad101..8d00d4e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -46,7 +46,13 @@ services: # - mysql://hackmd:hackmdpass@database:3306/hackmd # - sqlite:///data/sqlite.db (NOT RECOMMENDED) # - For details see the official sequelize docs: http://docs.sequelizejs.com/en/v3/ - - CMD_DB_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_DB}:5432/hackmd + - CMD_DB_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_DB}:5432/${POSTGRES_DB} + - CMD_ALLOW_PDF_EXPORT=true + - CMD_IMAGE_UPLOAD_TYPE=filesystem + - CMD_DOMAIN=md.bmen.cc + - CMD_ALLOW_ANONYMOUS=false + - CMD_ALLOW_ANONYMOUS_EDITS=true + - CMD_ALLOW_FREEURL=true # ports: # Ports that are published to the outside. # The latter port is the port inside the container. It should always stay on 3000 @@ -55,6 +61,8 @@ services: # Example: # - "127.0.0.1:3000:3000" # - "3000:3000" + volumes: + - /opt/appdata/codimd/uploads:/codimd/public/uploads networks: - webproxy - backend-codimd