Added gpg and git configs to docker-compose.

This commit is contained in:
Otho Ulrich 2022-07-16 02:15:46 -04:00
parent cddbe30c18
commit 764131d99e
Signed by: Otho
GPG Key ID: 16C720CD3BBE21D9

View File

@ -25,6 +25,11 @@ services:
- GITEA__database__PASSWD=gitea - GITEA__database__PASSWD=gitea
- GITEA__repository__ENABLE_PUSH_CREATE_USER=true - GITEA__repository__ENABLE_PUSH_CREATE_USER=true
- GITEA__repository__ENABLE_PUSH_CREATE_ORG=true - GITEA__repository__ENABLE_PUSH_CREATE_ORG=true
- GITEA__repository__signing__SIGNING_KEY=default
- GITEA__repository__signing__INITIAL_COMMIT=pubkey
- GITEA__repository__signing__WIKI=pubkey
- GITEA__repository__signing__CRUD_ACTIONS=pubkey
- GITEA__repository__signing__MERGES=pubkey,commitssigned
- VIRTUAL_HOST=code.othoulrich.com - VIRTUAL_HOST=code.othoulrich.com
- VIRTUAL_PORT=3000 - VIRTUAL_PORT=3000
- LETSENCRYPT_HOST=code.othoulrich.com - LETSENCRYPT_HOST=code.othoulrich.com
@ -32,9 +37,11 @@ services:
- gitea - gitea
- proxy - proxy
volumes: volumes:
- ./.data/gitea:/data - .data/gitea:/data
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- gitea/gitconfig:/root/.gitconfig:ro
- .secret/gitea/gnupg:/root/.gnupg:ro
ports: ports:
- "922:22" - "922:22"
depends_on: depends_on:
@ -51,7 +58,7 @@ services:
networks: networks:
- gitea - gitea
volumes: volumes:
- ./.data/gitea-db:/var/lib/postgresql/data - .data/gitea-db:/var/lib/postgresql/data
apache: apache:
image: httpd:2.4 image: httpd:2.4
@ -63,7 +70,7 @@ services:
networks: networks:
- proxy - proxy
volumes: volumes:
- ./htdocs:/usr/local/apache2/htdocs - htdocs:/usr/local/apache2/htdocs
####################################3 ####################################3
## nginx proxy ## nginx proxy
@ -79,7 +86,7 @@ services:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
volumes: volumes:
- certs:/etc/nginx/certs:ro - certs:/etc/nginx/certs:ro
- ./vhost.d:/etc/nginx/vhost.d - vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html - html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro - /var/run/docker.sock:/tmp/docker.sock:ro
networks: networks:
@ -92,7 +99,7 @@ services:
volumes: volumes:
- certs:/etc/nginx/certs - certs:/etc/nginx/certs
- acme:/etc/acme.sh - acme:/etc/acme.sh
- ./vhost.d:/etc/nginx/vhost.d - vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html - html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
networks: networks: