jean-cloud-services/services/git.jean-cloud.net/docker-compose.yml

35 lines
622 B
YAML
Raw Normal View History

2023-04-24 10:11:09 +00:00
version: '3'
services:
gitea:
2024-01-02 16:50:14 +00:00
image: gitea/gitea:1.21
2023-04-24 10:11:09 +00:00
depends_on:
- db
volumes:
- /data/git.jean-cloud.net/web:/data
ports:
- "22529:22"
restart: unless-stopped
networks:
default:
2024-01-02 16:50:14 +00:00
ipv4_address: $NET.100
2023-04-24 10:11:09 +00:00
db:
2024-01-02 16:50:14 +00:00
image: postgres:16-alpine
2023-04-24 10:11:09 +00:00
volumes:
- /data/git.jean-cloud.net/db:/var/lib/postgresql/data
2024-02-22 00:43:01 +00:00
restart: unless-stopped
2023-04-24 10:11:09 +00:00
networks:
default:
2024-01-02 16:50:14 +00:00
ipv4_address: $NET.101
2023-04-24 10:11:09 +00:00
deploy:
resources:
limits:
2024-01-02 16:50:14 +00:00
cpus: '1'
memory: 300M
2023-04-24 10:11:09 +00:00
networks:
default:
ipam:
config:
2024-01-02 16:50:14 +00:00
- subnet: $NET.0/24
2023-04-24 10:11:09 +00:00