42 lines
763 B
YAML
Executable File
42 lines
763 B
YAML
Executable File
version: '3'
|
|
services:
|
|
gitea:
|
|
image: gitea/gitea:1.9.1
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- /data/git.jean-cloud.net/web:/data
|
|
ports:
|
|
- "22529:22"
|
|
restart: unless-stopped
|
|
networks:
|
|
default:
|
|
ipv4_address: 172.29.10.100
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 100M
|
|
|
|
|
|
db:
|
|
# https://hub.docker.com/_/postgres?tab=description
|
|
image: postgres:9.6-alpine
|
|
volumes:
|
|
- /data/git.jean-cloud.net/db:/var/lib/postgresql/data
|
|
networks:
|
|
default:
|
|
ipv4_address: 172.29.10.101
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 100M
|
|
|
|
networks:
|
|
default:
|
|
ipam:
|
|
config:
|
|
- subnet: 172.29.10.0/24
|
|
|