1
0
Fork 0

hugo-thefossguy: new ports and use :Z

This commit is contained in:
Pratham Patel 2022-07-21 22:23:41 +05:30
parent 8c55f2b2de
commit 0e4a2de993
3 changed files with 61 additions and 4 deletions

View File

@ -7,9 +7,9 @@ services:
restart: always
command: server
ports:
- 8081:1313
- 8030:1313
volumes:
- /trayimurti/containers/volumes/hugo/thefossguy-blog:/src
- /trayimurti/containers/volumes/hugo/thefossguy-blog:/src:Z
environment:
- TZ=Asia/Kolkata
security_opt:

View File

@ -7,9 +7,9 @@ services:
restart: always
command: server
ports:
- 8082:1313
- 8040:1313
volumes:
- /trayimurti/containers/volumes/hugo/thefossguy-machines:/src
- /trayimurti/containers/volumes/hugo/thefossguy-machines:/src:Z
environment:
- TZ=Asia/Kolkata
security_opt:

57
master-compose.yml Normal file
View File

@ -0,0 +1,57 @@
version: 3.3
services:
gitea-app:
image: gitea/gitea:latest
container_name: gitea-chitragupta
restart: always
ports:
- 8010:3000
- 8011:2222
volumes:
- /trayimurti/containers/volumes/gitea/root/data:/var/lib/gitea:Z
- /trayimurti/containers/volumes/gitea/root/config:/etc/gitea:Z
- /etc/localtime:/etc/localtime:ro
environment:
- ROOT_URL=https://git.thefossguy.com
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=/run/secrets/gitea_database_user_password
- TZ=Asia/Kolkata
depends_on:
- gitea-db
secrets:
- gitea_database_user_password
gitea-db:
image: postgres:alpine
container_name: gitea-govinda
restart: always
volumes:
- /trayimurti/containers/volumes/gitea/db:/var/lib/postgresql/data:Z
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=/run/secrets/gitea_database_user_password
- POSTGRES_DB=gitea
- TZ=Asia/Kolkata
secrets:
- gitea_database_user_password
secrets:
gitea_database_user_password:
external: true
# create dirs
# mkdir -vp /trayimurti/containers/volumes/gitea/{db,root/{data,config}}
# create secrets
# openssl rand -base64 20 | podman secret create gitea_database_user_password -
# open ports
# sudo firewall-cmd --add-port=8010/tcp --add-port=8011/tcp --permanent
# sudo firewall-cmd --reload