27 lines
521 B
YAML
27 lines
521 B
YAML
version: '2'
|
|
|
|
services:
|
|
gitea:
|
|
image: "${gitea_image}:${gitea_version}"
|
|
container_name: gitea
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
volumes:
|
|
- gitea-data:/data:Z
|
|
ports:
|
|
- ${weblisten_if}:${weblisten_port}:3000
|
|
- ${sshlisten_if}:${sshlisten_port}:22
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: "${postgres_image}:${postgres_version}"
|
|
container_name: gitea-db
|
|
volumes:
|
|
- gitea-pgsql:/var/lib/postgresql/data:Z
|
|
|
|
volumes:
|
|
gitea-data:
|
|
gitea-pgsql:
|