Package Centre > Docker > Install
/docker/gitea/postgresql
/docker/gitea/gitea
Do this now so you reserve the appropriate ports. You need 3 ports:
- HTTPS, which redirects to:
- HTTP
- SSH port
Control Panel > Application Portal > Reverse Proxy > Create
Source
Protocol: HTTPS
Hostname: *
Port: <HTTPS Port>
Enable HSTS
Enable HTTP/2
Destination
Protocol: HTTP
Hostname: localhost
Port: <HTTP Port>
Apps > Docker > Registry > Search > sameersbn/postgresql
This is the image that Synology uses when installing Postgres.
Name: gitea_postgresql
Volume:
/docker/gitea/postgresql -> /var/lib/postgresql
Network: bridge
Env:
DB_NAME gitea
DB_USER gitea_user
DB_PASS gitea_pass
Apps > Docker > Registry > Search > gitea/gitea
Based on these instructions
Note: We configure Gitea to use the reverse proxied ports so that any URLs are correct.
Name: gitea_gitea
Ports:
<HTTP Port> -> <HTTPS Port> tcp
<SSH Port> -> <SSH Port> tcp
Volume:
/docker/gitea/gitea -> /data
Links:
gitea_postgresql -> db
Network: bridge
Env:
DB_TYPE: postgres
DB_HOST: db:5432
DB_NAME: gitea
DB_USER: gitea_user
DB_PASSWD: gitea_pass
HTTP_PORT: <HTTPS Port>
SSH_PORT: <SSH Port>
LFS_START_SERVER: true (optional)
Docker > Containers > gitea_gitea > On
- Simplify port re-direction (https -> http -> docker http)