32 lines
615 B
YAML
32 lines
615 B
YAML
|
services:
|
||
|
server:
|
||
|
image: codeberg.org/forgejo/forgejo:7
|
||
|
container_name: forgejo
|
||
|
environment:
|
||
|
VIRTUAL_HOST: code.bengoldsworthy.net
|
||
|
VIRTUAL_PORT: 3000
|
||
|
LETSENCRYPT_HOST: code.bengoldsworthy.net
|
||
|
USER_UID: 1000
|
||
|
USER_GID: 1000
|
||
|
restart: always
|
||
|
volumes:
|
||
|
- ./data:/data
|
||
|
- /etc/timezone:/etc/timezone:ro
|
||
|
- /etc/localtime:/etc/localtime:ro
|
||
|
ports:
|
||
|
- "3000:3000"
|
||
|
- "222:22"
|
||
|
expose:
|
||
|
- 80
|
||
|
- 443
|
||
|
deploy:
|
||
|
resources:
|
||
|
limits:
|
||
|
cpus: '0.50'
|
||
|
|
||
|
networks:
|
||
|
default:
|
||
|
name: nginx-proxy
|
||
|
external: true
|
||
|
|