Add iperf3/docker-compose.yml
This commit is contained in:
37
iperf3/docker-compose.yml
Normal file
37
iperf3/docker-compose.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:latest
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA__database__DB_TYPE=postgres
|
||||
- GITEA__database__HOST=db:5432
|
||||
- GITEA__database__NAME=gitea
|
||||
- GITEA__database__USER=gitea
|
||||
- GITEA__database__PASSWD=gitea
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- /media/gv0/docker/gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "222:22"
|
||||
depends_on:
|
||||
- db
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
|
||||
db:
|
||||
image: docker.io/library/postgres:14
|
||||
restart: on-failure
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.database == here
|
||||
environment:
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD=gitea
|
||||
- POSTGRES_DB=gitea
|
||||
volumes:
|
||||
- /media/gv0/docker/postgres:/var/lib/postgresql/data
|
||||
Reference in New Issue
Block a user