Merge branch 'master' of gitea:FunctionalHacker/dotfiles
commit
81a91fefb6
@ -0,0 +1 @@
|
||||
.env
|
@ -0,0 +1,20 @@
|
||||
version: "2"
|
||||
|
||||
services:
|
||||
openldap:
|
||||
container_name: openldap
|
||||
image: osixia/openldap:stable
|
||||
environment:
|
||||
- TZ=Europe/Helsinki
|
||||
- LDAP_ORGANIZATION="Korhonen"
|
||||
- LDAP_DOMAIN="korhonen.cc"
|
||||
- LDAP_ADMIN_PASSWORD="${LDAP_ADMIN_PASSWORD}"
|
||||
hostname: ldap.korhonen.cc
|
||||
ports:
|
||||
- 389:389
|
||||
- 636:636
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /docker/auth/openldap/ldap:/var/lib/ldap
|
||||
- /docker/auth/openldap/slapd.d:/etc/ldap/slapd.d
|
||||
- /etc/localtime:/etc/localtime:ro
|
@ -1,54 +0,0 @@
|
||||
version: "3.3"
|
||||
|
||||
services:
|
||||
wordpress:
|
||||
container_name: wordpress
|
||||
image: wordpress:latest
|
||||
environment:
|
||||
- TZ=Europe/Helsinki
|
||||
- WORDPRESS_DB_HOST=mariadb-wordpress:3306
|
||||
- WORDPRESS_DB_USER=wordpress
|
||||
- WORDPRESS_DB_PASSWORD=wordpress
|
||||
- WORDPRESS_DB_NAME=wordpress
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- proxy
|
||||
- wordpress
|
||||
volumes:
|
||||
- /docker/wordpress/wordpress:/var/www/html
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
|
||||
- "traefik.http.routers.wordpress-redirect.entrypoints=http"
|
||||
- "traefik.http.routers.wordpress-redirect.rule=Host(`johanna.korhonen.cc`)"
|
||||
- "traefik.http.middlewares.http2https.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.wordpress-redirect.middlewares=http2https"
|
||||
|
||||
- "traefik.http.routers.wordpress.entrypoints=https"
|
||||
- "traefik.http.routers.wordpress.rule=Host(`johanna.korhonen.cc`)"
|
||||
- "traefik.http.routers.wordpress.tls=true"
|
||||
- "traefik.http.routers.wordpress.tls.certresolver=http"
|
||||
- "traefik.http.routers.wordpress.service=wordpress"
|
||||
- "traefik.docker.network=proxy"
|
||||
- "traefik.http.services.wordpress.loadbalancer.server.port=80"
|
||||
|
||||
mariadb-wordpress:
|
||||
image: mariadb
|
||||
container_name: mariadb-wordpress
|
||||
volumes:
|
||||
- /docker/wordpress/mariadb:/var/lib/mysql
|
||||
restart: always
|
||||
networks:
|
||||
- wordpress
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=oT8Veu3Vre4ohj3E
|
||||
- MYSQL_DATABASE=wordpress
|
||||
- MYSQL_USER=wordpress
|
||||
- MYSQL_PASSWORD=wordpress
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
wordpress:
|
||||
external: false
|
@ -1 +1 @@
|
||||
Subproject commit 636c1ade26a5205ca84aef624ed971c0e529ffa7
|
||||
Subproject commit 5d4b12eaf44b940ba3a478ded48b1cde039471a6
|
Loading…
Reference in New Issue