2 Commits
Author SHA1 Message Date
KKlochko ac4e28bd56 Update the README to add step to choose a pre-build or build image.
continuous-integration/drone/push Build is passing
2025-05-29 20:37:19 +03:00
KKlochko 59ab26a838 Update the docker-compose to use the pre-built image by default. 2025-05-29 20:36:44 +03:00
2 changed files with 7 additions and 2 deletions
+3
View File
@@ -9,6 +9,9 @@
- change the values in `.env` and `.env_db`
you can use `mix phx.gen.secret` to generate secrets.
update the PHX_HOST to your domain name.
- if you don't want to pull the pre-built container
- uncomment the part to build the image in the `docker-compose.yaml` file
- comment the image part to avoid pulling.
- run `docker compose up -d`
- run migrations `docker exec -it dbi bin/migrate`
- open the url (`PHX_HOST`) in a browser.
+4 -2
View File
@@ -17,8 +17,10 @@ services:
web:
# to build the image
build:
context: .
#build:
# context: .
# to pull the pre-built image
image: git.kklochko.space/kklochko/decentralised_book_index:latest
container_name: dbi
ports:
- 4000:4000