mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-22 17:27:18 +00:00
use z flag
This commit is contained in:
parent
5e0c61fa8f
commit
1c06f6de29
|
@ -15,9 +15,8 @@ services:
|
|||
POSTGRES_PASSWORD: akkoma,
|
||||
}
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./pgdata
|
||||
target: /var/lib/postgresql/data
|
||||
- ./pgdata:/var/lib/postgresql/data:z
|
||||
|
||||
|
||||
akkoma:
|
||||
image: akkoma/akkoma:next
|
||||
|
@ -35,9 +34,9 @@ services:
|
|||
"127.0.0.1:4000:4000",
|
||||
]
|
||||
volumes:
|
||||
- ./config/prod.secret.exs:/etc/akkoma/config.exs
|
||||
- ./uploads:/opt/akkoma/uploads
|
||||
- ./instance:/opt/akkoma/instance
|
||||
- ./config/prod.secret.exs:/etc/akkoma/config.exs:z
|
||||
- ./uploads:/opt/akkoma/uploads:z
|
||||
- ./instance:/opt/akkoma/instance:z
|
||||
|
||||
# Copy this into docker-compose.override.yml and uncomment there if you want to use a reverse proxy
|
||||
#proxy:
|
||||
|
|
|
@ -4,14 +4,15 @@ set -euo pipefail
|
|||
|
||||
mkdir -p pgdata
|
||||
mkdir -p docker-setup-tmp
|
||||
chmod a+w docker-setup-tmp
|
||||
|
||||
# This is sorta special in that we need the generated_config.exs to make it onto the host
|
||||
# We can also automate the DB setup here!
|
||||
docker compose run \
|
||||
--rm \
|
||||
-e "PLEROMA_CTL_RPC_DISABLED=true" \
|
||||
-v $(pwd)/docker-setup-tmp:/opt/akkoma/config/ \
|
||||
akkoma ./bin/pleroma_ctl instance gen --no-sql-user --no-db-creation --dbhost db --dbname akkoma --dbuser akkoma --dbpass akkoma --listen-ip 0.0.0.0 --listen-port 4000 --static-dir /opt/akkoma/instance/ --uploads-dir /opt/akkoma/uploads/ --db-configurable true
|
||||
-v $(pwd)/docker-setup-tmp:/opt/akkoma/config/:z \
|
||||
akkoma ./bin/pleroma_ctl instance gen --no-sql-user --no-db-creation --dbhost db --dbname akkoma --dbuser akkoma --dbpass akkoma --listen-ip 0.0.0.0 --listen-port 4000 --static-dir /opt/akkoma/instance/ --uploads-dir /opt/akkoma/uploads/ --db-configurable true --output /opt/akkoma/config/generated_config.exs --output-psql /opt/akkoma/config/setup_db.psql
|
||||
|
||||
echo ""
|
||||
echo "=========================="
|
||||
|
|
Loading…
Reference in a new issue