Update comfigs for best practices
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
image: gitea/gitea:1.25.5
|
||||
container_name: gitea
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
@@ -10,8 +10,18 @@ services:
|
||||
volumes:
|
||||
- /mnt/storage/apps/gitea/data:/data
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "2223:22"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 1G
|
||||
cpus: '1.0'
|
||||
networks:
|
||||
- network
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user