Make local federated instances use comnpose file for build (#3968)

* Make local federated instances use comnpose file for build

* Remove commented out part of script
This commit is contained in:
SleeplessOne1917 2023-09-20 13:14:51 +00:00 committed by GitHub
parent 50f81cf157
commit a866b3424d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 9 deletions

View file

@ -2,16 +2,18 @@ version: "3.7"
x-ui-default: &ui-default x-ui-default: &ui-default
init: true init: true
image: dessalines/lemmy-ui:0.18.1 image: dessalines/lemmy-ui:0.18.4
# assuming lemmy-ui is cloned besides lemmy directory # assuming lemmy-ui is cloned besides lemmy directory
# build: # build:
# context: ../../../lemmy-ui # context: ../../../lemmy-ui
# dockerfile: dev.dockerfile # dockerfile: dev.dockerfile
environment: environment:
- LEMMY_UI_HTTPS=false - LEMMY_UI_HTTPS=false
x-lemmy-default: &lemmy-default x-lemmy-default: &lemmy-default
image: lemmy-federation:latest build:
context: ../..
dockerfile: docker/Dockerfile
environment: environment:
- RUST_BACKTRACE=1 - RUST_BACKTRACE=1
- RUST_LOG="warn,lemmy_server=debug,lemmy_api=debug,lemmy_api_common=debug,lemmy_api_crud=debug,lemmy_apub=debug,lemmy_db_schema=debug,lemmy_db_views=debug,lemmy_db_views_actor=debug,lemmy_db_views_moderator=debug,lemmy_routes=debug,lemmy_utils=debug,lemmy_websocket=debug" - RUST_LOG="warn,lemmy_server=debug,lemmy_api=debug,lemmy_api_common=debug,lemmy_api_crud=debug,lemmy_apub=debug,lemmy_db_schema=debug,lemmy_db_views=debug,lemmy_db_views_actor=debug,lemmy_db_views_moderator=debug,lemmy_routes=debug,lemmy_utils=debug,lemmy_websocket=debug"

View file

@ -1,14 +1,11 @@
#!/bin/bash #!/bin/bash
set -e set -e
sudo docker-compose down sudo docker compose down
sudo docker build ../../ --file ../Dockerfile -t lemmy-federation:latest
for Item in alpha beta gamma delta epsilon ; do for Item in alpha beta gamma delta epsilon ; do
sudo mkdir -p volumes/pictrs_$Item sudo mkdir -p volumes/pictrs_$Item
sudo chown -R 991:991 volumes/pictrs_$Item sudo chown -R 991:991 volumes/pictrs_$Item
done done
#sudo docker-compose pull --ignore-pull-failures || true sudo docker compose up
sudo docker-compose up