forked from freeleaps/freeleaps-pub
86 lines
2.2 KiB
YAML
86 lines
2.2 KiB
YAML
services:
|
|
gitea:
|
|
# For apple chip, add: platform: linux/amd64
|
|
container_name: freeleaps2-gitea
|
|
image: freeleaps.azurecr.io/gitea:1.20.4
|
|
restart: always
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- DISABLE_REGISTRATION=true
|
|
- REQUIRE_SIGNIN_VIEW=true
|
|
volumes:
|
|
- freeleaps2-gitea-data:/data
|
|
networks:
|
|
- freeleaps2-network
|
|
|
|
mongodb:
|
|
# For apple chip, add: platform: linux/amd64
|
|
# For apple chip, you may want to downgrade to public mongo:4.4 for log support
|
|
container_name: freeleaps2-mongodb
|
|
image: freeleaps.azurecr.io/mongo:latest
|
|
restart: always
|
|
ports:
|
|
- "27017:27017"
|
|
volumes:
|
|
- freeleaps2-mongodb-data:/data/db
|
|
networks:
|
|
- freeleaps2-network
|
|
|
|
rabbitmq:
|
|
# For apple chip, add: platform: linux/amd64
|
|
container_name: freeleaps2-rabbitmq
|
|
image: freeleaps.azurecr.io/rabbitmq:3.13
|
|
restart: always
|
|
ports:
|
|
- "5672:5672"
|
|
- "15672:15672"
|
|
volumes:
|
|
- freeleaps2-rabbitmq-data:/var/lib/rabbitmq
|
|
networks:
|
|
- freeleaps2-network
|
|
|
|
devsvc:
|
|
container_name: devsvc
|
|
image: freeleaps.azurecr.io/devsvc:1.0.0
|
|
restart: always
|
|
environment:
|
|
- APP_NAME=devsvc
|
|
- SERVICE_API_ACCESS_HOST=localhost
|
|
- SERVICE_API_ACCESS_PORT=8007
|
|
- MONGODB_NAME=freeleaps2
|
|
- MONGODB_URI=mongodb://freeleaps2-mongodb:27017/
|
|
- GITEA_TOKEN=6786dc398b77d2a9c454b1943019425049deb667
|
|
- GITEA_URL=http://freeleaps2-gitea:3000
|
|
- CODE_DEPOT_HTTP_PORT=3443
|
|
- CODE_DEPOT_SSH_PORT=22
|
|
- CODE_DEPOT_DOMAIN_NAME=localhost
|
|
- RABBITMQ_HOST=freeleaps2-rabbitmq
|
|
- RABBITMQ_PORT=5672
|
|
- LOG_BASE_PATH=/app/log/devsvc
|
|
- BACKEND_LOG_FILE_NAME=devsvc.log
|
|
- APPLICATION_ACTIVITY_LOG=devsvc-application.log
|
|
ports:
|
|
- 8007:8007
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
uvicorn webapi.main:app --reload --port=8007 --host=0.0.0.0
|
|
volumes:
|
|
- type: bind
|
|
source: /var/lib/docker/app/devsvc/log
|
|
target: /app/log/devsvc
|
|
networks:
|
|
- freeleaps2-network
|
|
|
|
volumes:
|
|
freeleaps2-mongodb-data:
|
|
freeleaps2-gitea-data:
|
|
freeleaps2-rabbitmq-data:
|
|
|
|
|
|
networks:
|
|
freeleaps2-network:
|
|
driver: bridge
|