Report this

What is the reason for this report?

Use docker-compose to push application in Dokku in Digital Ocean

Posted on March 28, 2021

I have a dockerized flask application with 2 services inside docker-compose. How can I use docker-compose to push my application inside of Dokku on Digital Ocean?

version: "3.9"
services:
  web:
    build: .
    container_name: ad
    ports:
      - "5000:5000"
    volumes:
      - ".:/app"

  scheduler:
    image: mcuadros/ofelia:latest
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./config.ini:/etc/ofelia/config.ini
    depends_on:
      - web

I have setup and configured a Dokku droplet. Any help is appreciated.

Resources -

https://dokku.com/docs/deployment/builders/dockerfiles/ https://auth0.com/blog/hosting-applications-using-digitalocean-and-dokku/ https://www.linode.com/docs/guides/deploy-a-flask-application-with-dokku/



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @srivastavaanan05 - unfortunately I’m not personally familiar with how to configure this app and deploy code to it. Your best bet might be to visit https://github.com/dokku/dokku/discussions and post a question there. Sorry I can’t be of more help on this one.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.