update
This commit is contained in:
48
gitea/Demo/GiteaWithNginx/docker-compose.yml
Normal file
48
gitea/Demo/GiteaWithNginx/docker-compose.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
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
|
||||
|
Reference in New Issue
Block a user