forked from plume/documentation
Update the Docker setup
- search_index volume - Create plume user before running diesel (thanks to Djyp on Matrix)
This commit is contained in:
parent
99de71c2c5
commit
32a9601814
4 changed files with 6 additions and 1 deletions
|
@ -14,5 +14,6 @@ services:
|
|||
volumes:
|
||||
- "./data/plume/static/media:/app/static/media"
|
||||
- "./.env:/app/.env"
|
||||
- "./search_index:/app/search_index"
|
||||
ports:
|
||||
- "127.0.0.1:7878:7878"
|
||||
|
|
|
@ -14,5 +14,6 @@ services:
|
|||
volumes:
|
||||
- "./data/plume/static/media:/app/static/media"
|
||||
- "./.env:/app/.env"
|
||||
- "./search_index:/app/search_index"
|
||||
ports:
|
||||
- "127.0.0.1:7878:7878"
|
||||
|
|
|
@ -14,5 +14,6 @@ services:
|
|||
volumes:
|
||||
- "./data/plume/static/media:/app/static/media"
|
||||
- "./.env:/app/.env"
|
||||
- "./search_index:/app/search_index"
|
||||
ports:
|
||||
- "127.0.0.1:7878:7878"
|
||||
|
|
|
@ -35,8 +35,10 @@ Once it's done, you can finalize the installation.
|
|||
# Download the images
|
||||
docker-compose pull
|
||||
|
||||
# Launch the database
|
||||
# Launch the database container
|
||||
docker-compose up -d postgres
|
||||
# Create the database role (it will ask you for the password)
|
||||
docker-compose run --rm postgres su postgres -c createuser plume -dP
|
||||
# Setup the database (create it and run migrations)
|
||||
docker-compose run --rm plume diesel database setup
|
||||
|
||||
|
|
Loading…
Reference in a new issue