Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat : draft gogs integration (WIP) #166

Draft
wants to merge 9 commits into
base: dev
Choose a base branch
from
5 changes: 4 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ EXTERNAL_HOST_IP=
IGN_PARTITION="movai_ce_flow"
XAUTH=/tmp/.docker.xauth
DISPLAY=${DISPLAY:-:1}
LOGLEVEL=30
GIT_POSTGRES_USER=gitmovai
GIT_POSTGRES_PASSWORD=gitmovai
REDIS_LOCAL_PORT=6380
REDIS_MASTER_PORT=6379
REDIS_MASTER_PORT=6379
34 changes: 34 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,36 @@ services:
- |
exec /usr/bin/rviz

gitserver:
image: gogs/gogs:latest
restart: always
ports:
- "30022:22"
- "30080:3000"
links:
- gitdb
environment:
- "RUN_CROND=true"
networks:
- private
- proxy
volumes:
- "gogs-data:/data"
depends_on:
- gitdb

gitdb:
image: postgres:9.5
restart: always
environment:
- "POSTGRES_USER=${GIT_POSTGRES_USER}"
- "POSTGRES_PASSWORD=${GIT_POSTGRES_PASSWORD}"
- "POSTGRES_DB=gogs"
volumes:
- "gitdb-data:/var/lib/postgresql/data"
networks:
- private

haproxy:
image: ${MOVAI_REGISTRY:-pubregistry.aws.cloud.mov.ai}/ce/haproxy:v1.0.7
container_name: haproxy-$MOVAI_DEVICE_NAME
Expand All @@ -307,6 +337,10 @@ services:
volumes:
redis-master-flow-volume:
redis-local-flow-volume:
gitdb-data:
driver: local
gogs-data:
driver: local

networks:
proxy:
Expand Down