Last active
October 30, 2024 21:11
-
-
Save yurkimus/3a899066dd9c5aa9b39f9654f01e0ca1 to your computer and use it in GitHub Desktop.
Traefik configuration with neo4j http and bolt settings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
neo4j: | |
image: neo4j:latest | |
container_name: neo4j | |
networks: | |
- traefik | |
labels: | |
- traefik.enable=true | |
# Web | |
- traefik.http.routers.neo4j-web.entrypoints=web | |
- traefik.http.routers.neo4j-web.rule=Host(`neo4j.localhost`) | |
- traefik.http.routers.neo4j-web.service=neo4j-web | |
- traefik.http.services.neo4j-web.loadbalancer.server.port=7474 | |
# Bolt | |
- traefik.http.routers.neo4j-bolt.entrypoints=bolt | |
- traefik.http.routers.neo4j-bolt.rule=Host(`neo4j.localhost`) | |
- traefik.http.routers.neo4j-bolt.service=neo4j-bolt | |
- traefik.http.services.neo4j-bolt.loadbalancer.server.port=7687 | |
traefik: | |
image: traefik:latest | |
container_name: traefik | |
networks: | |
- traefik | |
ports: | |
- 80:80 | |
- 434:434 | |
- 7687:7687 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
command: | |
- --log.level=DEBUG | |
- --providers.docker=true | |
- --entryPoints.web.address=:80 | |
- --entryPoints.webs.address=:434 | |
- --entryPoints.bolt.address=:7687 | |
networks: | |
traefik: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment