Question

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

Posted March 28, 2021 88 views
DigitalOceanPythonDockerDokkuDigitalOcean 1-Click Apps MarketplaceFlaskDigitalOcean Droplets

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/

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.

×
Submit an Answer
1 answer

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.