Commit da1bc1ad authored by kaiyou's avatar kaiyou

Update most of the compose files

parent c7381646
......@@ -6,7 +6,7 @@ de TeDomum. La documentation est répartie entre :
- les fichiers `README.md` dans l'arborescence du projet, documentant les choix
de conception locaux et l'arborescence elle-même
- les fichiers de configuration eux-mêmes
- le wiki disponible à https://git.tedomum.net/tedomum/documentation/wikis/home
- le wiki disponible à https://forge.tedomum.net/tedomum/documentation/wikis/home
# Contenu
......
version: '2.1'
services:
db:
image: mariadb:latest
volumes:
- ./data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
piwik:
restart: always
image: tedomum/piwik
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:${hostname}
volumes:
- ./conf:/var/www/html/config
networks:
default:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: "${prefix}/64"
gateway: "${prefix}1"
version: '2'
version: '2.1'
services:
traefik:
......@@ -28,7 +28,6 @@ services:
-i 'apk add --no-cache nftables'
-c 'nft -f /result/nft.conf'
networks:
default:
enable_ipv6: true
......
version: '2.1'
services:
db:
image: mariadb:latest
volumes:
- ./data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
dns:
image: tedomum/pdns
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:${hostname}
- traefik.frontend.contentSecurityPolicy=default-src 'self'; style-src 'self' 'unsafe-inline'
- traefik.port=8081
ports:
- "${ipv4}:53:53/udp"
- "${ipv4}:53:53"
- "${ipv6}:53:53/udp"
- "${ipv6}:53:53"
command: |
--launch=gmysql
--local-ipv6=::
--allow-axfr-ips=${AXFR}
--webserver-address=::
--gmysql-host=dns1_db_1
--gmysql-user=${MYSQL_USER}
--gmysql-password=${MYSQL_PASSWORD}
--gmysql-dbname=${MYSQL_DATABASE}
--gmysql-innodb-read-committed=no
--api=yes
--api-key=${PDNS_PDNS_API_KEY}
--default-soa-edit-signed=INCEPTION-INCREMENT
--default-soa-edit=INCEPTION-INCREMENT
--default-soa-name=${hostname}.
--default-soa-mail=${mail}.
admin:
image: tedomum/pdnsadmin
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:${admin}
- traefik.port=9191
volumes:
- ./admin:/data
environment:
- PDNS_SECRET_KEY
- PDNS_PDNS_STATS_URL=http://dns:8081
- PDNS_PDNS_API_KEY
networks:
default:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: "${prefix}/64"
gateway: "${prefix}1"
version: '2.1'
services:
odoo:
image: tedomum/odoo
labels:
- traefik.enable=true
- traefik.frontend.rule=HostRegexp:${hostname},{subdomain:[a-z]+}.${hostname}
- traefik.port=8069
volumes:
- ./conf:/etc/odoo
- ./store:/var/lib/odoo
- ./extra:/mnt/extra-addons
db:
image: postgres:9.4
volumes:
- ./db:/var/lib/postgresql/data
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
aeroo:
restart: always
image: adhoc/aeroo-docs
networks:
default:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: "${prefix}/64"
gateway: "${prefix}1"
version: '2.1'
services:
gitlab:
image: gitlab/gitlab-ce
labels:
- traefik.enable=true
- traefik.gitlab.frontend.rule=Host:${hostname}
- traefik.gitlab.port=80
- traefik.ci.frontend.rule=Host:${ci}
- traefik.ci.port=8123
volumes:
- ./data:/var/opt/gitlab
- ./conf:/etc/gitlab
- ./log:/var/log/gitlab
ports:
- "${ipv4}:22:22"
- "${ipv6}:22:22"
environment:
- "GITLAB_OMNIBUS_CONFIG=gitlab_rails['gitlab_email_from']='${mail}'"
networks:
default:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: "${prefix}/64"
gateway: "${prefix}1"
version: '2.1'
services:
mongo:
image: "mongo:3"
volumes:
- ./db:/data/db
logging:
driver: "json-file"
search:
image: "elasticsearch:2"
command: "elasticsearch -Des.cluster.name='graylog'"
volumes:
- ./data:/usr/share/elasticsearch/data
logging:
driver: "json-file"
engine:
image: graylog2/server:2.4.4-1
labels:
- traefik.enable=true
- traefik.port=9000
- traefik.frontend.rule=Host:${hostname}
environment:
- GRAYLOG_ROOT_PASSWORD_SHA2
- GRAYLOG_PASSWORD_SECRET
- GRAYLOG_WEB_ENDPOINT_URI=https://${hostname}/api
- GRAYLOG_ELASTICSEARCH_HOSTS=http://search:9200
ports:
- "${ipv6}:12201:12201/udp"
volumes:
- ./journal:/usr/share/graylog/data/journal
depends_on:
- mongo
- search
networks:
default:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: "${prefix}/64"
gateway: "${prefix}1"
version: '2.1'
services:
synapse:
image: matrixdotorg/synapse:v0.33.3.1
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:${hostname};PathPrefix:/_matrix/
- traefik.port=8008
volumes:
- ./data:/data
ports:
- "${ipv4}:8448:8448"
- "${ipv6}:8448:8448"
environment:
- SYNAPSE_SERVER_NAME
- SYNAPSE_REPORT_STATS=no
- SYNAPSE_ENABLE_REGISTRATION=yes
- SYNAPSE_ALLOW_GUEST=yes
- SYNAPSE_MACAROON_SECRET_KEY
- POSTGRES_HOST=db
- POSTGRES_USER
- POSTGRES_DB
- POSTGRES_PASSWORD
- SYNAPSE_LOG_LEVEL=WARNING
depends_on:
- db
riot:
image: avhost/docker-matrix-riot
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:${hostname}
- traefik.port=8000
volumes:
- ./riot:/data
db:
image: postgres:9.5
volumes:
- ./db:/var/lib/postgresql/data
- ./wal:/wal
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
# purge:
# image: kaiyou/synpurge
# volumes:
# - ./purge:/conf
networks:
default:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: "${prefix}/64"
gateway: "${prefix}1"
version: '2.1'
services:
telegraf:
image: telegraf:1.7-alpine
volumes:
- ./conf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock
- /:/hostfs:ro
- /run/udev:/run/udev:ro
- /var/run/utmp:/var/run/utmp:ro
environment:
- HOST_PROC=/hostfs/proc
links:
- influxdb
privileged: true
influxdb:
image: influxdb:1.5-alpine
volumes:
- ./influx:/var/lib/influxdb
chronograf:
image: chronograf:1.5-alpine
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:${hostname}
- traefik.frontend.auth.basic=${auth}
- traefik.port=8888
volumes:
- ./chronograf:/var/lib/chronograf
environment:
INFLUXDB_URL: http://influxdb:8086
KAPACITOR_URL: http://kapacitor:9092
links:
- influxdb
- kapacitor
kapacitor:
image: kapacitor:1.5-alpine
volumes:
- ./kapacitor:/var/lib/kapacitor
environment:
KAPACITOR_HOSTNAME: kapacitor
KAPACITOR_INFLUXDB_0_URLS_0: http://influxdb:8086
links:
- influxdb
networks:
default:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: "${prefix}/64"
gateway: "${prefix}1"
version: '2.1'
services:
odoo:
image: odoo:10
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:${hostname}
- traefik.port=8069
environment:
- HOST=db
- USER
- PASSWORD
links:
- db:db
volumes:
- ./conf:/etc/odoo
- ./store:/var/lib/odoo
- ./extra:/mnt/extra-addons
db:
image: postgres:9.4
volumes:
- ./data:/var/lib/postgresql/data
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
networks:
default:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: "${prefix}/64"
gateway: "${prefix}1"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment