Compare commits
2
Commits
045faf59a4
...
ac4e28bd56
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac4e28bd56 | ||
|
|
59ab26a838 |
@@ -9,6 +9,9 @@
|
|||||||
- change the values in `.env` and `.env_db`
|
- change the values in `.env` and `.env_db`
|
||||||
you can use `mix phx.gen.secret` to generate secrets.
|
you can use `mix phx.gen.secret` to generate secrets.
|
||||||
update the PHX_HOST to your domain name.
|
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 `docker compose up -d`
|
||||||
- run migrations `docker exec -it dbi bin/migrate`
|
- run migrations `docker exec -it dbi bin/migrate`
|
||||||
- open the url (`PHX_HOST`) in a browser.
|
- open the url (`PHX_HOST`) in a browser.
|
||||||
|
|||||||
+4
-2
@@ -17,8 +17,10 @@ services:
|
|||||||
|
|
||||||
web:
|
web:
|
||||||
# to build the image
|
# to build the image
|
||||||
build:
|
#build:
|
||||||
context: .
|
# context: .
|
||||||
|
# to pull the pre-built image
|
||||||
|
image: git.kklochko.space/kklochko/decentralised_book_index:latest
|
||||||
container_name: dbi
|
container_name: dbi
|
||||||
ports:
|
ports:
|
||||||
- 4000:4000
|
- 4000:4000
|
||||||
|
|||||||
Reference in New Issue
Block a user