master-compose: added networks and a template for services
This commit is contained in:
parent
62f95bea7c
commit
0b54428449
|
@ -176,30 +176,27 @@ secrets:
|
||||||
nextcloud_database_user_password:
|
nextcloud_database_user_password:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
networks:
|
||||||
|
network-caddy:
|
||||||
|
network-gitea:
|
||||||
|
network-blog:
|
||||||
|
network-nextcloud:
|
||||||
|
network-mach:
|
||||||
|
network-torrent:
|
||||||
|
|
||||||
# sudo firewall-cmd --permanent --add-port=8080/tcp --add-port=8443/tcp --add-port=8010/tcp --add-port=8011/tcp --add-port=8020/tcp --add-port=8030/tcp --add-port=8040/tcp
|
# SERVICE_TEMPLATE
|
||||||
# sudo firewall-cmd --reload
|
# service:
|
||||||
# sudo firewall-cmd --list-ports
|
# image:
|
||||||
|
# container_name:
|
||||||
# sudo zfs create trayimurti/containers/volumes/caddy
|
# command OR entrypoint:
|
||||||
# sudo zfs create trayimurti/containers/volumes/gitea
|
# restart: always
|
||||||
# sudo zfs create trayimurti/containers/volumes/blog
|
# ports:
|
||||||
# sudo zfs create trayimurti/containers/volumes/nextcloud
|
# volumes:
|
||||||
# sudo zfs create trayimurti/containers/volumes/mach
|
# labels:
|
||||||
|
# - io.containers.autoupdate=registry
|
||||||
# sudo chown pratham:pratham -vR /trayimurti/containers/volumes
|
# - pratham.container.category=
|
||||||
|
# environment:
|
||||||
# mkdir -vp /trayimurti/containers/volumes/caddy/{site,ssl/{private,certs},caddy_{data,config}}
|
# - TZ=Asia/Kolkata
|
||||||
# mkdir -vp /trayimurti/containers/volumes/gitea/{database,web,ssh}
|
# depends_on:
|
||||||
# mkdir -vp /trayimurti/containers/volumes/nextcloud/{database,web}
|
# secrets:
|
||||||
|
# networks:
|
||||||
# cp -v Caddyfile /trayimurti/containers/volumes/caddy/
|
|
||||||
# chmod 700 -v /trayimurti/containers/volumes/caddy/ssl/private
|
|
||||||
# chmod 600 -v /trayimurti/containers/volumes/caddy/ssl/private/key.pem
|
|
||||||
|
|
||||||
# git clone git@gitlab.com:shivohamx3/blog.git /trayimurti/containers/volumes/blog
|
|
||||||
# git clone git@gitlab.com:shivohamx3/machines.git /trayimurti/containers/volumes/mach
|
|
||||||
# mkdir -vp /trayimurti/containers/volumes/{mach,blog}/content
|
|
||||||
|
|
||||||
# openssl rand -base64 20 | podman secret create gitea_database_user_password -
|
|
||||||
# openssl rand -base64 20 | podman secret create nextcloud_database_user_password -
|
|
||||||
|
|
Loading…
Reference in New Issue