41 lines
No EOL
840 B
YAML
Executable file
41 lines
No EOL
840 B
YAML
Executable file
---
|
|
services:
|
|
|
|
watchtower:
|
|
image: containrrr/watchtower
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
Gitea:
|
|
image: docker.gitea.com/gitea:latest
|
|
container_name: gitea
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
restart: always
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- /data/gitea:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "8080:3000"
|
|
- "2221:22"
|
|
|
|
nginx:
|
|
image: nginx:latest
|
|
container_name: nginx-proxy
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- /config/nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
- /config/nginx/certs:/etc/nginx/certs
|
|
|
|
networks:
|
|
gitea:
|
|
external: false
|
|
default:
|
|
external: true
|
|
name: nginx-proxy-net |