websoft9/docker/docker-compose.yml

82 lines
1.9 KiB
YAML
Raw Normal View History

2023-09-19 18:30:33 +08:00
version: "3.8"
services:
apphub:
image: websoft9dev/apphub:$APPHUB_VERSION
container_name: websoft9-apphub
restart: always
volumes:
- apphub_logs:/websoft9/apphub/logs
2023-10-10 08:27:39 +08:00
- apphub_config:/websoft9/apphub/src/config
2023-09-19 18:30:33 +08:00
depends_on:
- deployment
- git
- proxy
2023-10-12 14:50:50 +08:00
labels:
2023-11-03 16:07:14 +08:00
- "owner=websoft9"
2024-01-22 14:25:31 +08:00
- "com.docker.compose.w9_http.port=8080"
2023-09-19 18:30:33 +08:00
deployment:
image: websoft9dev/deployment:$DEPLOYMENT_VERSION
container_name: websoft9-deployment
restart: always
volumes:
- portainer:/data
2023-09-27 14:50:42 +08:00
- /data/compose:/data/compose
2023-09-19 18:30:33 +08:00
- /var/run/docker.sock:/var/run/docker.sock
2023-09-20 19:37:12 +08:00
#- /run/podman/podman.sock:/var/run/docker.sock
2024-07-25 08:39:06 +08:00
command: ["--hide-label", "owner=websoft9"]
2023-09-19 18:30:33 +08:00
labels:
2023-11-03 16:07:14 +08:00
- "owner=websoft9"
2024-01-22 14:25:31 +08:00
- "com.docker.compose.w9_http.port=9000"
2023-09-19 18:30:33 +08:00
git:
image: websoft9dev/git:$GIT_VERSION
container_name: websoft9-git
restart: always
volumes:
- gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
- INSTALL_LOCK=true
- DISABLE_SSH=true
- RUN_MODE=prod
- HTTP_PORT=3000
2023-12-07 17:18:32 +08:00
- DISABLE_REGISTRATION=true
- GITEA__server__OFFLINE_MODE=true
2023-09-19 18:30:33 +08:00
- REQUIRE_SIGNIN_VIEW=false
2023-10-12 09:18:56 +08:00
- ROOT_URL=http://localhost/w9git/
2023-09-19 18:30:33 +08:00
labels:
2023-11-03 16:07:14 +08:00
- "owner=websoft9"
2024-01-22 14:25:31 +08:00
- "com.docker.compose.w9_http.port=3000"
2023-09-19 18:30:33 +08:00
proxy:
2023-09-23 10:41:35 +08:00
image: websoft9dev/proxy:$PROXY_VERSION
2023-09-19 18:30:33 +08:00
container_name: websoft9-proxy
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- nginx_data:/data
- nginx_letsencrypt:/etc/letsencrypt
labels:
2023-11-03 16:07:14 +08:00
- "owner=websoft9"
2024-01-22 14:25:31 +08:00
- "com.docker.compose.w9_http.port=80"
- "com.docker.compose.w9_https.port=443"
- "com.docker.compose.w9_console.port=81"
2023-09-19 18:30:33 +08:00
networks:
default:
name: websoft9
external: true
volumes:
apphub_logs:
apphub_config:
portainer:
gitea:
nginx_data:
2024-01-22 14:25:31 +08:00
nginx_letsencrypt: