mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
added watchtower
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
Checkout [https://www.nickyeoman.com/](https://www.nickyeoman.com/) to learn more.
|
Checkout [https://www.nickyeoman.com/](https://www.nickyeoman.com/) to learn more.
|
||||||
|
|
||||||
With the exception of traefik and portainer the process is pretty much the same.
|
|
||||||
|
|
||||||
The idea is to run all these services off of one host and they are setup so
|
The idea is to run all these services off of one host and they are setup so
|
||||||
you can run multiple versions of any software just by changing the .env file
|
you can run multiple versions of any software just by changing the .env file
|
||||||
|
|
||||||
@@ -15,7 +13,7 @@ The process is:
|
|||||||
1. PREFIX in .env should the project_name (for example nick_yeoman or ny)
|
1. PREFIX in .env should the project_name (for example nick_yeoman or ny)
|
||||||
1. docker-compose -p project_name up -d
|
1. docker-compose -p project_name up -d
|
||||||
|
|
||||||
To create multiple projects is a little bit more tricky as you have to
|
To create multiple projects is a little bit more tricky as you have to
|
||||||
define new directories for the .env file.
|
define new directories for the .env file.
|
||||||
|
|
||||||
To do this I've just been copying the app folder to a domain-name folder.
|
To do this I've just been copying the app folder to a domain-name folder.
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
# https://containrrr.dev/watchtower/
|
||||||
|
# Untested
|
||||||
|
|
||||||
|
services:
|
||||||
|
watchtower:
|
||||||
|
image: containrrr/watchtower
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
Reference in New Issue
Block a user