yerbamate-ml/files/docker-compose.yml

84 lines
2.1 KiB
YAML

version: "2.2"
services:
gitea:
image: gitea/gitea:1.17
restart: always
volumes:
- ./volumes/gitea:/data
ports:
- "127.0.0.1:3000:3000"
- "222:22"
environment:
- GITEA_HOSTNAME=${GITEA_HOSTNAME}
depends_on:
- postgres
- redis
- postfix
mem_limit: 500m
weblate:
image: weblate/weblate:4.13.1-2
restart: always
ports:
- "127.0.0.1:3001:8080"
environment:
- WEBLATE_EMAIL_HOST=postfix
- WEBLATE_EMAIL_USE_TLS=0
- WEBLATE_ALLOWED_HOSTS=${WEBLATE_HOSTNAME},127.0.0.1
- WEBLATE_ADMIN_PASSWORD=${WEBLATE_ADMIN_PASSWORD}
- WEBLATE_ADMIN_NAME="Weblate admin"
- WEBLATE_ADMIN_EMAIL=noreply@${WEBLATE_HOSTNAME}
- WEBLATE_SERVER_EMAIL=noreply@${WEBLATE_HOSTNAME}
- WEBLATE_DEFAULT_FROM_EMAIL=noreply@${WEBLATE_HOSTNAME}
- WEBLATE_SITE_DOMAIN=${WEBLATE_HOSTNAME}
- WEBLATE_DEBUG=false
- REDIS_HOST=redis
- REDIS_DB=2
- POSTGRES_PASSWORD=${WEBLATE_POSTGRES_PASSWORD}
- POSTGRES_USER=weblate
- POSTGRES_DATABASE=weblate
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
volumes:
- ./volumes/weblate:/app/data
depends_on:
- postgres
- redis
- postfix
drone:
image: drone/drone:2.12.1
restart: always
ports:
- "127.0.0.1:8194:80"
environment:
- DRONE_GITHUB_CLIENT_ID=${DRONE_GITHUB_CLIENT_ID}
- DRONE_GITHUB_CLIENT_SECRET=${DRONE_GITHUB_CLIENT_SECRET}
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_SERVER_HOST=${DRONE_HOSTNAME}
- DRONE_SERVER_PROTO=https
- DRONE_USER_FILTER=LemmyNet
volumes:
- ./volumes/drone:/data
postgres:
image: postgres:12-alpine
restart: always
environment:
- POSTGRES_USER=weblate
- POSTGRES_PASSWORD=${WEBLATE_POSTGRES_PASSWORD}
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
redis:
image: redis:5.0-alpine
restart: always
command: redis-server --appendonly yes
postfix:
image: mwader/postfix-relay
environment:
- POSTFIX_myhostname=${GITEA_HOSTNAME}
restart: "always"