Add multiple services

This commit is contained in:
BatchAccount 1001 2022-12-07 21:00:35 +01:00
parent e08303fc6d
commit 3761c7b1f0
3 changed files with 124 additions and 0 deletions

View File

@ -0,0 +1,57 @@
version: "3.8"
networks:
gitea:
external: false
services:
server:
container_name: gitea
image: gitea/gitea:1.17.3
restart: always
environment:
USER_UID: 1000
USER_GID: 1000
GITEA__database__DB_TYPE: postgres
GITEA__database__HOST: db:5432
GITEA__database__NAME: ${POSTGRES_DB}
GITEA__database__USER: ${POSTGRES_USER}
GITEA__database__PASSWD: ${POSTGRES_PASSWORD}
GITEA__server__DOMAIN: git.jilits.se
GITEA__server__SSH_PORT: 2222
GITEA__openid__ENABLE_OPENID_SIGNIN: "false"
GITEA__service__DISABLE_REGISTRATION: "true"
GITEA__service__NO_REPLY_ADDRESS: noreply.git.jilits.se
GITEA__mailer__ENABLED: "true"
GITEA__mailer__MAILER_TYPE: smtp
GITEA__mailer__HOST: mail.jilits.se:587
GITEA__mailer__FROM: Gitea <git@jilits.se>
GITEA__mailer__USER: ${SMTP_USER}
GITEA__mailer__PASSWD: ${SMTP_PASS}
networks:
- gitea
volumes:
- gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "8002:3000"
- "2222:22"
depends_on:
- db
db:
image: postgres:15.0-alpine3.16
restart: always
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- gitea
volumes:
- db:/var/lib/postgresql/data
volumes:
gitea:
db:

View File

@ -0,0 +1,47 @@
version: "3.8"
networks:
kanboard:
external: false
services:
server:
container_name: kanboard
image: kanboard/kanboard:v1.2.24
restart: always
environment:
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_DB}
MAIL_TRANSPORT: smtp
MAIL_SMTP_HOSTNAME: mail.jilits.se
MAIL_SMTP_PORT: 587
MAIL_SMTP_USERNAME: ${SMTP_USER}
MAIL_SMTP_PASSWORD: ${SMTP_PASS}
MAIL_SMTP_ENCRYPTION: tls
MAIL_SMTP_HELO_NAME: board.jilits.se
MAIL_FROM: Kanboard <board@jilits.se>
networks:
- kanboard
volumes:
- kanboard_data:/var/www/app/data
- kanboard_plugins:/var/www/app/plugins
ports:
- "8001:80"
depends_on:
- db
db:
image: postgres:15.0-alpine3.16
restart: always
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- kanboard
volumes:
- db:/var/lib/postgresql/data
volumes:
kanboard_data:
kanboard_plugins:
db:

View File

@ -0,0 +1,20 @@
version: "3.8"
networks:
openldap:
external: false
services:
openldap:
image: docker.io/bitnami/openldap:2.6.3-debian-11-r40
restart: unless-stopped
env_file: openldap.env
volumes:
- openldap_data:/bitnami/openldap
ports:
- "389:1389"
- "636:1636"
volumes:
openldap_data: