For automatic deployment.
Auto Deploy Docker, as its name suggests, is a container deployment automation, if you have a container and intend to deploy it automatically, this is a tool that promises to solve, for that, it will use Webhook to fire the triggers and perform backend routines to stop the container, remove, clean old images and recreates everything again, lets play!
POST: /api/deploy/webhook/:secret
version: "3.3"
services:
pg:
image: postgres:11.5-alpine
container_name: pg-database-auto-deploy
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
POSTGRES_DB: databaseName
volumes:
- ./postgres:/var/lib/postgresql/data
- "/etc/localtime:/etc/localtime:ro"
networks:
- autodeploy-network
server:
image: joaomede/auto-deploy-docker:v1.0.0
container_name: "server-auto-deploy"
depends_on:
- pg
environment:
HOSTDB: pg-database-auto-deploy
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: databaseName
NODE_ENV: dev
EMAIL: [email protected]
PASSWORDSMTP: passwordEmail
SECRET: youApiKeySecret
ports:
- 8080:80
volumes:
- "/etc/localtime:/etc/localtime:ro"
- /var/run/docker.sock:/var/run/docker.sock
networks:
- autodeploy-network
networks:
autodeploy-network:
driver: bridge
Yes, Auto Deploy Container is designed for that specific need
Yes, it is possible, however, each "deploy project" can have 1 or more containers, the remote target will be associated with the entity "project deploy" and not with the "containers" contained in the "project."
Yes, and No, if the remote machine, targeting the automation, is configured with a private registry, or has a private registry locally, the automation will certainly work, however, it will be necessary to properly inform the name of the image when configuring the template, also if configured by the composer or via Bash
R - At first, no, if your container has entrypoints to solve everything, do git clones and perform update routines "something unusual", it may even work, but this system was designed for autonomous containers and not for hybrid "container + external things. ".
R - No, as stated earlier, the deployment will only take place well with fully insulated containers and prepared to run quickly
it is possible to define:
This routine may vary according to specific problems, such as the fact that the container already exists, or the image cannot be removed (because it is in use by other containers)
Content type
Image
Digest
Size
89.1 MB
Last updated
over 6 years ago
docker pull joaomede/auto-deploy-docker:v1.1.0