docker/gitea/Demo/GiteaWithNginx/docker-compose.yml
2022-04-18 11:21:20 +08:00

49 lines
917 B
YAML

version: "3.7"
services:
gitea:
image: harbor.colben.cn/general/gitea
container_name: gitea
restart: on-failure
stop_grace_period: 1m
networks:
gitea:
volumes:
- type: bind
source: ./gitea/gitea
target: /var/lib/gitea
- type: bind
source: ./gitea/log
target: /var/log/gitea
- type: bind
source: ./gitea/indexers
target: /indexers
- type: bind
source: ./socket
target: /socket
nginx:
image: harbor.colben.cn/general/nginx
container_name: nginx
restart: on-failure
stop_grace_period: 1m
networks:
gitea:
ports:
- 80:80
volumes:
- type: bind
source: ./nginx/http.d
target: /etc/nginx/http.d
- type: bind
source: ./nginx/log
target: /var/log/nginx
- type: bind
source: ./socket
target: /socket
networks:
gitea:
external: false