31 lines
648 B
YAML
31 lines
648 B
YAML
version: "3"
|
|
|
|
services:
|
|
gogs:
|
|
image: gogs/gogs
|
|
volumes:
|
|
- /containers/data/gogs/gogs:/data
|
|
ports:
|
|
- '10022:22'
|
|
- 60086:3000
|
|
restart: always
|
|
logging:
|
|
driver: fluentd
|
|
options:
|
|
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
|
|
|
|
gogs-db_postgres:
|
|
image: postgres:12-alpine
|
|
restart: always
|
|
volumes:
|
|
- /containers/data/gogs/pgsql:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_PASSWORD=
|
|
- POSTGRES_USER=gogs
|
|
logging:
|
|
driver: fluentd
|
|
options:
|
|
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
|
|
|
|
|