mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 23:50:31 +00:00
92 lines
No EOL
2 KiB
YAML
92 lines
No EOL
2 KiB
YAML
# this file for developer
|
|
# install --devto "/data/mysource"
|
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
apphub:
|
|
image: websoft9dev/apphub:${APPHUB_VERSION}
|
|
container_name: websoft9-apphub
|
|
build:
|
|
context: .
|
|
dockerfile: ./apphub/Dockerfiledev
|
|
args:
|
|
- APPHUB_VERSION=${APPHUB_VERSION}
|
|
ports:
|
|
- 9001-9999:8080
|
|
restart: always
|
|
volumes:
|
|
- /data/mysource:/websoft9/apphub-dev
|
|
- apphub_media:/websoft9/media
|
|
depends_on:
|
|
- deployment
|
|
- git
|
|
- proxy
|
|
|
|
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
|
|
healthcheck:
|
|
test: ["CMD", "/environment"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
labels:
|
|
com.docker.compose.w9_http.port: 9000
|
|
|
|
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
|
|
- ROOT_URL=http://localhost/w9git/
|
|
labels:
|
|
com.docker.compose.w9_http.port: 3000
|
|
|
|
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:
|
|
com.docker.compose.w9_http.port: 80
|
|
com.docker.compose.w9_https.port: 443
|
|
com.docker.compose.w9_console.port: 81
|
|
|
|
networks:
|
|
default:
|
|
name: websoft9
|
|
external: true
|
|
|
|
volumes:
|
|
apphub_media:
|
|
portainer:
|
|
gitea:
|
|
nginx_data:
|
|
nginx_letsencrypt: |