docker-ovh/docker-compose.yml

128 lines
2.9 KiB
YAML
Raw Normal View History

2020-02-02 23:55:37 +01:00
version: "3"
services:
2020-02-22 19:13:24 +01:00
##################################################
# DATABASES #
##################################################
mongo:
image: mongo:4.2
restart: always
volumes:
- ./mongo_data:/data/db
2020-02-22 19:13:24 +01:00
redis:
image: redis:5.0
restart: always
volumes:
- ./redis_data:/data
2020-02-22 19:13:24 +01:00
2020-02-02 23:55:37 +01:00
riot:
build: riot
restart: always
ports:
- 8080:80
privatebin:
image: privatebin/nginx-fpm-alpine:1.3.4
2020-02-02 23:55:37 +01:00
restart: always
volumes:
- ./privatebin_data:/srv/data
ports:
- 8083:80
etherpad:
build: etherpad
restart: always
environment:
- "POSTGRES_PASSWORD=${ETHERPAD_POSTGRES_PASSWD}"
ports:
- 8084:9001
depends_on:
- postgres
2020-02-02 23:55:37 +01:00
grafana:
build: grafana
restart: always
environment:
- "ENV_PASSWORD=${GRAFANA_LDAP_BIND_PASSWD}"
volumes:
- ./grafana_data:/var/lib/grafana
ports:
- 8082:3000
matrix-appservice-discord:
image: halfshot/matrix-appservice-discord:latest
2020-02-02 23:55:37 +01:00
restart: always
volumes:
- ./matrix-appservice-discord_data:/data
- ./matrix-appservice-discord_data/discord.db:/discord.db
ports:
- 9005:9005
prometheus-alertmanager:
build: prometheus-alertmanager
restart: always
ports:
- 9093:9093
prometheus-alertmanager-discord:
build: prometheus-alertmanager-discord
restart: always
environment:
- "DISCORD_WEBHOOK=${PROMETHEUS_DISCORD_WEBHOOK}"
2020-02-03 13:12:31 +01:00
postgres:
# Don't upgrade PostgreSQL by simply changing the version number
# You need to migrate the Database to the new PostgreSQL version
2020-02-03 14:07:50 +01:00
# When creating for the first time,
# you need to create codimd and cas users and databases.
2020-02-03 13:12:31 +01:00
image: postgres:9.6-alpine
restart: always
environment:
2020-02-03 14:07:50 +01:00
- POSTGRES_USER=postgres
- "POSTGRES_PASSWD=${POSTGRES_PASSWD}"
2020-02-03 13:12:31 +01:00
volumes:
- ./postgres_data:/var/lib/postgresql/data
codimd:
build: codimd
restart: always
environment:
2020-10-11 23:48:56 +02:00
- "CMD_LDAP_BINDCREDENTIALS=${CODIMD_LDAP_BINDCREDENTIALS}"
# enable registration
2020-10-11 23:48:56 +02:00
- "CMD_EMAIL=true"
- "CMD_ALLOW_EMAIL_REGISTER=true"
2020-02-03 13:12:31 +01:00
ports:
- "8081:3000"
volumes:
- ./codimd_uploads_data:/codimd/public/uploads
depends_on:
- postgres
2020-02-03 14:07:50 +01:00
# cas:
# build: django-cas-server
# restart: always
# environment:
# DJANGO_DB_PASSWORD: "${DJANGO_CAS_DB_PASSWORD}"
# DJANGO_SECRET_KEY: "${DJANGO_CAS_SECRET_KEY}"
# DJANGO_CAS_LDAP_PASSWORD: "${DJANGO_CAS_LDAP_PASSWORD}"
# ports:
# - "8085:8000"
# depends_on:
# - postgres
2020-02-22 19:13:24 +01:00
# sharelatex:
# build: sharelatex
# restart: always
# volumes:
# - ./sharelatex_data:/var/lib/sharelatex
# - /var/run/docker.sock:/var/run/docker.sock
# privileged: true
# ports:
# - "8086:8000"
# depends_on:
# - mongo
# - redis