Files
www/docker-compose.yml

36 lines
934 B
YAML

services:
mailsync:
image: python:3
volumes:
- ./:/data
- ./mailsync.py:/usr/src/mailsync.py
command: python /usr/src/mailsync.py
environment:
- "USERNAME=changeme"
- "PASSWORD=changeme"
- "IMAP_SERVER=imap.example.com"
- "SAVE_DIR=/data/htdocs"
www:
image: ericomeehan/gitweb:latest
build:
dockerfile: gitweb.Dockerfile
depends_on:
- mailsync
volumes:
- ./htdocs:/usr/local/apache2/htdocs/
- ./conf/httpd.conf:/usr/local/apache2/conf/httpd.conf
- ./conf/httpd-gitweb.conf:/usr/local/apache2/conf/extra/httpd-gitweb.conf
- ./conf/gitweb.conf:/etc/gitweb.conf
ports:
- 8080:80
- 9117:9117
gitserver:
image: ericomeeha/gitserver:latest
build:
dockerfile: gitserver.Dockerfile
volumes:
- ./htdocs:/home/git/data
- ./authorized_keys:/auth/authorized_keys
ports:
- 2222:22