Skip to content
Snippets Groups Projects
Commit 06f8dc4d authored by uroremi's avatar uroremi
Browse files

Add plume service

parent 27c74a26
No related branches found
No related tags found
No related merge requests found
File added
FROM plumeorg/plume:latest
When launching for the first time, we first need to execute the initial database migration and create an admin user. This is done using the following command:
`source secrets/plume-first_launch.secrets && ./before_first_launch.sh`
The service can then be started with `docker-compose up -d`.
#!/bin/sh
docker-compose up -d plumedb
docker-compose run --rm plume plm migration run
docker-compose run --rm plume plm search init
docker-compose run --rm plume plm instance new -d '$URL' -n '$NAME' -l 'CC-BY-SA'
docker-compose run --rm plume plm users new -n '$ADMIN_USER' -N '$ADMIN_NAME' -b '' -e '$ADMIN_EMAIL' -p '$ADMIN_PASS' --admin
generalwhitelist:
version: "3"
volumes:
plumedb-data:
plume-data:
plume-searchidx:
networks:
docker_default:
external: true
services:
plumedb:
image: postgres:10.5
container_name: plumedb
env_file: plume.env
restart: always
volumes:
- "plumedb-data:/var/lib/postgresql/data"
networks:
- docker_default
plume:
image: pica-plume
container_name: plume
env_file: plume.env
restart: always
volumes:
- "plume-data:/app/static/media"
- "./plume.env:/app/.env"
- "plume-searchidx:/app/search_index"
labels:
- "traefik.frontend.rule=Host:blog.test.picasoft.net"
- "traefik.enable=true"
- "traefik.port=7878"
links:
- plumedb:plumedb
networks:
- docker_default
BASE_URL=blog.test.picasoft.net
# generate one with openssl rand -base64 32
ROCKET_SECRET_KEY=kkZNhngivtkphj2QXuQLZ3eIPf372+RsTyvHA0AR7tI=
# Mail settings
#MAIL_SERVER=smtp.example.org
#MAIL_USER=example
#MAIL_PASSWORD=123456
#MAIL_HELO_NAME=example.org
# DATABASE SETUP
POSTGRES_PASSWORD=passw0rd
POSTGRES_USER=plume
POSTGRES_DB=plume
# you can safely leave those defaults
DATABASE_URL=postgres://plume:passw0rd@plumedb:5432/plume
MIGRATION_DIRECTORY=migrations/postgres
USE_HTTPS=1
ROCKET_ADDRESS=0.0.0.0
ROCKET_PORT=7878
RUST_BACKTRACE=FULL
URL=blog.test.picasoft.net
NAME=PicaTestBlog
ADMIN_USER=picasoft
ADMIN_NAME=Picasoft
ADMIN_PASS=pica2020pica
ADMIN_EMAIL=pica@picasoft.net
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment