GithubHelp home page GithubHelp logo

docker-for-zolotyh's Introduction

Example docker-compose for zolotyh

Structure

app - main go app
  src - code app
  Makefile - build enterypoint
  Dockerfile - how build image 
cron - cron app
  assets - files for image
  Makefile - build enterypoint
  Dockerfile - how build image 
 ...
postgres - postgres db
 ...

Docker network relationships

app -> postgres
app -> smtp

cron -> app
cron -> postgres

Docker ports

app -> 8000
smtp -> 8025, 1025 (only for internal)
postres -> 5432
cron -> none

Get started

build all image and start containers, rerun build only change apps

make

Order for build (look to Makefile)

  • postgres
  • app
  • cron

Clean all images and data

make clean

Notice: This message is not error

Removing volume zolotyh_postgres-data
docker rmi
"docker rmi" requires at least 1 argument(s).
See 'docker rmi --help'.

Usage:  docker rmi [OPTIONS] IMAGE [IMAGE...]

Remove one or more images
Makefile:17: ошибка выполнения рецепта для цели «clean»
make: *** [clean] Ошибка 1

docker-for-zolotyh's People

Stargazers

Alex avatar

Watchers

Kravchuk S.V. avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.