Skip to content

Complete docker-compose.yml example? #5522

Answered by josegonzalez
nemanjam asked this question in Q&A
Discussion options

You must be logged in to vote

I ran the following modified command based on the docker install docs in conjunction with dokku/docker-run-export to generate a compose file. The only changes I made were:

  • change the binary to docker-run-export
  • remove container as part of the subcommand
  • add the --dre-project dokku flag
docker-run-export run --dre-project dokku \
  --env DOKKU_HOSTNAME=dokku.me \
  --env DOKKU_HOST_ROOT=/var/lib/dokku/home/dokku \
  --name dokku \
  --publish 3022:22 \
  --publish 8080:80 \
  --publish 8443:443 \
  --volume /var/lib/dokku:/mnt/dokku \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  dokku/dokku:0.29.0

This is what it spit out:

---
name: dokku
services:
  app:
    container_name: d…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@nemanjam
Comment options

@josegonzalez
Comment options

@cburkins
Comment options

Comment options

You must be logged in to vote
2 replies
@nemanjam
Comment options

@josegonzalez
Comment options

Answer selected by nemanjam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants