Former-commit-id: 369b2f6084694a413ef91ce4f24ab0c2fe37f3bb
Former-commit-id: 46a5f9c41d35ec70392234119e7c150f24cd9784
1.0
wanggang 4 years ago
parent 07470036a9
commit 41ffb4d3bb

@ -0,0 +1,30 @@
version: "3.8"
networks:
default:
name: mynetwork
driver: bridge
ipam:
config:
- subnet: 172.172.0.0/24
services:
portainer:
image: portainer/portainer-ce:2.5.0
restart: always
ports:
- 9000:9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
#- portainer_data:/data
networks:
default:
ipv4_address: 172.172.0.9
deploy:
replicas: 1
# volumes:
# portainer_data:
# driver: vieux/sshfs:latest
# driver_opts:
# sshcmd: root@192.168.100.144:/root
# port: 2222
# password: root
# allow_other: ""

@ -0,0 +1,2 @@
docker network rm mynetwork
docker network create --driver overlay --subnet 172.172.0.0/24 --gateway 172.172.0.1 mynetwork

@ -1,10 +1,11 @@
version: "3.8"
services:
sshfs:
image: gjyoung1974/alpine-sshd:latest
nfs:
image: itsthenetwork/nfs-server-alpine:12
privileged: true
ports:
- 1234:22
- 2049:2049
environment:
- ROOT_PASSWORD=root
- SHARED_DIRECTORY=/nfsshare
volumes:
- ../fs:/datacd
- ../fs:/nfsshare

@ -0,0 +1,2 @@
TZ=Asia/Shanghai
IP=192.168.100.144

@ -0,0 +1,3 @@
.vscode
log
data

@ -0,0 +1,51 @@
BRAND_NAME = Gogs
RUN_USER = git
RUN_MODE = prod
[database]
TYPE = sqlite3
HOST = 127.0.0.1:5432
NAME = gogs
USER = gogs
PASSWORD =
SSL_MODE = disable
PATH = data/gogs.db
[repository]
ROOT = /data/git/gogs-repositories
[server]
DOMAIN = localhost
HTTP_PORT = 3000
EXTERNAL_URL = http://localhost:3000/
DISABLE_SSH = false
SSH_PORT = 22
START_SSH_SERVER = false
OFFLINE_MODE = false
[mailer]
ENABLED = false
[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = false
ENABLE_CAPTCHA = true
REQUIRE_SIGNIN_VIEW = false
[picture]
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = false
[session]
PROVIDER = file
[log]
MODE = file
LEVEL = Info
ROOT_PATH = /app/gogs/log
[security]
INSTALL_LOCK = true
SECRET_KEY = fTLjOexokHUf7Re

@ -0,0 +1,48 @@
version: "3.8"
services:
gogs:
image: gogs/gogs:0.12.3
#restart: always
environment:
- TZ=${TZ}
volumes:
- ./conf/gogs:/data/gogs/conf/
- ./data/gogs:/data
- ./log/gogs:/app/gogs/log
ports:
- 1022:22
- 3000:3000
drone-server:
image: drone/drone:2.0.0
#restart: always
environment:
- TZ=${TZ}
- DRONE_AGENTS_ENABLED=true
- DRONE_GOGS_SERVER=http://gogs:3000
- DRONE_RPC_SECRET=123456
- DRONE_SERVER_HOST=drone-server
- DRONE_SERVER_PROTO=http
volumes:
- ./data/drone:/data
ports:
- 8000:80
depends_on:
- gogs
drone-runner:
image: drone/drone-runner-docker:1.6.3
#restart: always
environment:
- TZ=${TZ}
- DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=drone-server
- DRONE_RPC_SECRET=123456
- DRONE_RUNNER_NAME="${IP}-runner"
- DRONE_RUNNER_CAPACITY=2
- DRONE_DEBUG=false
- DRONE_TRACE=false
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 3000:3000
depends_on:
- drone-server
Loading…
Cancel
Save