2023-10-12 02:19:27 +00:00
|
|
|
# this file for developer
|
|
|
|
# install --devto "/data/mysource"
|
|
|
|
|
2023-10-10 10:29:23 +00:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
apphub:
|
2023-10-12 09:59:26 +00:00
|
|
|
image: websoft9dev/apphub:${APPHUB_VERSION}
|
2023-10-10 10:29:23 +00:00
|
|
|
container_name: websoft9-apphub
|
|
|
|
build:
|
|
|
|
context: .
|
2023-10-18 07:25:03 +00:00
|
|
|
dockerfile: ./apphub/Dockerfiledev
|
2023-10-12 02:19:27 +00:00
|
|
|
args:
|
|
|
|
- APPHUB_VERSION=${APPHUB_VERSION}
|
2023-10-10 10:29:23 +00:00
|
|
|
ports:
|
|
|
|
- 9001-9999:8080
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-10-12 02:47:22 +00:00
|
|
|
- /data/mysource:/websoft9/apphub-dev
|
2023-10-10 10:29:23 +00:00
|
|
|
- apphub_media:/websoft9/media
|
|
|
|
depends_on:
|
|
|
|
- deployment
|
|
|
|
- git
|
|
|
|
- proxy
|
2023-11-03 08:07:14 +00:00
|
|
|
labels:
|
|
|
|
- "owner=websoft9"
|
2024-01-22 06:24:57 +00:00
|
|
|
- "com.docker.compose.w9_http.port=8080"
|
2023-10-10 10:29:23 +00:00
|
|
|
|
|
|
|
deployment:
|
|
|
|
image: websoft9dev/deployment:$DEPLOYMENT_VERSION
|
|
|
|
container_name: websoft9-deployment
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 9001-9999:9000
|
|
|
|
volumes:
|
|
|
|
- portainer:/data
|
|
|
|
- /data/compose:/data/compose
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
#- /run/podman/podman.sock:/var/run/docker.sock
|
2023-10-18 10:05:26 +00:00
|
|
|
healthcheck:
|
2023-10-19 09:45:17 +00:00
|
|
|
test: ["CMD", "/endpoint"]
|
2023-10-19 09:18:31 +00:00
|
|
|
interval: 10s
|
|
|
|
timeout: 30s
|
|
|
|
retries: 4
|
2023-10-10 10:29:23 +00:00
|
|
|
labels:
|
2023-11-03 08:07:14 +00:00
|
|
|
- "owner=websoft9"
|
2024-01-22 06:24:57 +00:00
|
|
|
- "com.docker.compose.w9_http.port=9000"
|
2023-10-10 10:29:23 +00: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
|
|
|
|
ports:
|
|
|
|
- 9001-9999:3000
|
|
|
|
environment:
|
|
|
|
- INSTALL_LOCK=true
|
|
|
|
- DISABLE_SSH=true
|
|
|
|
- RUN_MODE=prod
|
|
|
|
- HTTP_PORT=3000
|
|
|
|
- DISABLE_REGISTRATION=false
|
|
|
|
- REQUIRE_SIGNIN_VIEW=false
|
2023-10-12 01:18:56 +00:00
|
|
|
- ROOT_URL=http://localhost/w9git/
|
2023-10-10 10:29:23 +00:00
|
|
|
labels:
|
2023-11-03 08:07:14 +00:00
|
|
|
- "owner=websoft9"
|
2024-01-22 06:24:57 +00:00
|
|
|
- "com.docker.compose.w9_http.port=3000"
|
2023-10-10 10:29:23 +00:00
|
|
|
|
|
|
|
proxy:
|
|
|
|
image: websoft9dev/proxy:$PROXY_VERSION
|
|
|
|
container_name: websoft9-proxy
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
- "9001-9999:81"
|
|
|
|
volumes:
|
|
|
|
- nginx_data:/data
|
|
|
|
- nginx_letsencrypt:/etc/letsencrypt
|
|
|
|
labels:
|
2023-11-03 08:07:14 +00:00
|
|
|
- "owner=websoft9"
|
2024-01-22 06:24:57 +00:00
|
|
|
- "com.docker.compose.w9_http.port=80"
|
|
|
|
- "com.docker.compose.w9_https.port=443"
|
|
|
|
- "com.docker.compose.w9_console.port=81"
|
2023-10-10 10:29:23 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: websoft9
|
|
|
|
external: true
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
apphub_media:
|
|
|
|
portainer:
|
|
|
|
gitea:
|
|
|
|
nginx_data:
|
2024-01-22 06:24:57 +00:00
|
|
|
nginx_letsencrypt:
|