Skip to content

Instantly share code, notes, and snippets.

@macielti
Last active August 6, 2023 17:36
Show Gist options
  • Select an option

  • Save macielti/f84e5b6340c2f9baaf14db512e4cfc13 to your computer and use it in GitHub Desktop.

Select an option

Save macielti/f84e5b6340c2f9baaf14db512e4cfc13 to your computer and use it in GitHub Desktop.
Datalevin Docker Compose file example
version: "3"
volumes:
datalevin:
services:
datalevin:
image: huahaiy/datalevin
container_name: global_datalevin
restart: always
environment:
- DATALEVIN_PORT=8899
volumes:
- datalevin:/data
ports:
- 8899:8899
serveo:
image: alpine
container_name: global_datalevin_serveo
restart: always
links:
- rabbitmq
command: sh -c 'apk add openssh && apk add autossh && mkdir -p /root/.ssh && chmod 0700 /root/.ssh && ssh-keyscan -t rsa serveo.net >> ~/.ssh/known_hosts && autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R 5672:rabbitmq:5672 [email protected]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment