Replies: 2 comments 3 replies
-
Hi @mvkvc! If Livebook and the Phoenix server is running on two different nodes: one outside and another inside Docker, then you need to start Livebook with the |
Beta Was this translation helpful? Give feedback.
2 replies
-
I'm using this docker compose file but not working version: '3.8' # Use the desired version of Docker Compose
services:
postgresql:
image: 'bitnami/postgresql:10'
ports:
- 5432:5432
environment:
- POSTGRESQL_USERNAME=postgres
- POSTGRESQL_PASSWORD=postgres
- POSTGRESQL_DATABASE=hive_dev
volumes:
- 'postgresql_data:/bitnami/postgresql'
networks:
- hive_livebook_network # Use the custom network
- hive_default
meilisearch:
image: getmeili/meilisearch
command: ./meilisearch
ports:
- 7700:7700
livebook:
image: ghcr.io/livebook-dev/livebook
ports:
- "8080:8080"
- "8081:8081"
volumes:
- ".:/livebook_data"
environment:
- ERL_AFLAGS="-proto_dist inet6_tcp"
restart: always
networks:
- hive_livebook_network # Use the custom network
- hive_default
hive:
build: .
# map the port of phoenix to the local dev port
ports:
- "4000:4000"
environment:
- HIVE_REPO_DATABASE_URL=postgres://postgres:postgres@postgresql:5432/hive_dev
depends_on:
- livebook # Now hive depends on livebook
- postgresql
- meilisearch
# mount the code folder inside the running container for easy development
volumes:
- .:/app
networks:
- hive_livebook_network # Use the custom network
- hive_default
volumes:
postgresql_data:
driver: local
networks:
hive_livebook_network:
driver: bridge # Use 'bridge' as the driver for the custom network
hive_default:
driver: bridge
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am running a phoenix app with docker compose and I would like to connect to it in livebook when I set the command to be:
iex --sname test --cookie mycookie -S mix phx.server
. However it is unclear what I should put for the node in this case of it is possible. Any help would be appreciated.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions