forked from data.coop/ansible
Adding fider and openldap services.
This commit is contained in:
parent
0acc23bc3f
commit
60f1a9a95f
43
roles/docker/files/composefiles/fider.yml
Normal file
43
roles/docker/files/composefiles/fider.yml
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
restart: always
|
||||||
|
image: postgres
|
||||||
|
networks:
|
||||||
|
- fider
|
||||||
|
volumes:
|
||||||
|
- /var/fider/pg_data:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: fider
|
||||||
|
POSTGRES_PASSWORD: "SOMESTRONGPASSWORD"
|
||||||
|
|
||||||
|
app:
|
||||||
|
restart: always
|
||||||
|
image: getfider/fider:stable
|
||||||
|
ports:
|
||||||
|
- "9999:3000"
|
||||||
|
networks:
|
||||||
|
- fider
|
||||||
|
- external_services
|
||||||
|
environment:
|
||||||
|
GO_ENV: production
|
||||||
|
DATABASE_URL: postgres://fider:SOMESTRONGPASSWORD@db:5432/fider?sslmode=disable
|
||||||
|
JWT_SECRET: LONGRANDOMSTRING
|
||||||
|
|
||||||
|
EMAIL_NOREPLY: noreply@data.coop
|
||||||
|
EMAIL_SMTP_HOST: smtp.fastmail.com
|
||||||
|
EMAIL_SMTP_PORT: 587
|
||||||
|
EMAIL_SMTP_USERNAME: a_smtp_user
|
||||||
|
EMAIL_SMTP_PASSWORD: password_for_smtp_user
|
||||||
|
|
||||||
|
VIRTUAL_HOST: feedback.data.coop
|
||||||
|
LETSENCRYPT_HOST: feedback.data.coop
|
||||||
|
LETSENCRYPT_EMAIL: valberg@orn.li
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
|
||||||
|
networks:
|
||||||
|
fider:
|
||||||
|
external_services:
|
||||||
|
external: true
|
61
roles/docker/files/composefiles/openldap.yml
Normal file
61
roles/docker/files/composefiles/openldap.yml
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
openldap:
|
||||||
|
image: osixia/openldap:1.2.2
|
||||||
|
container_name: openldap
|
||||||
|
environment:
|
||||||
|
LDAP_LOG_LEVEL: "256"
|
||||||
|
LDAP_ORGANISATION: "data.coop"
|
||||||
|
LDAP_DOMAIN: "data.coop"
|
||||||
|
LDAP_BASE_DN: ""
|
||||||
|
LDAP_ADMIN_PASSWORD: "admin"
|
||||||
|
LDAP_CONFIG_PASSWORD: "config"
|
||||||
|
LDAP_READONLY_USER: "true"
|
||||||
|
LDAP_READONLY_USER_USERNAME: "readonly"
|
||||||
|
LDAP_READONLY_USER_PASSWORD: "readonly"
|
||||||
|
LDAP_RFC2307BIS_SCHEMA: "false"
|
||||||
|
LDAP_BACKEND: "mdb"
|
||||||
|
LDAP_TLS: "true"
|
||||||
|
LDAP_TLS_CRT_FILENAME: "ldap.crt"
|
||||||
|
LDAP_TLS_KEY_FILENAME: "ldap.key"
|
||||||
|
LDAP_TLS_CA_CRT_FILENAME: "ca.crt"
|
||||||
|
LDAP_TLS_ENFORCE: "false"
|
||||||
|
LDAP_TLS_CIPHER_SUITE: "SECURE256:-VERS-SSL3.0"
|
||||||
|
LDAP_TLS_PROTOCOL_MIN: "3.1"
|
||||||
|
LDAP_TLS_VERIFY_CLIENT: "demand"
|
||||||
|
LDAP_REPLICATION: "false"
|
||||||
|
KEEP_EXISTING_CONFIG: "false"
|
||||||
|
LDAP_REMOVE_CONFIG_AFTER_SETUP: "true"
|
||||||
|
LDAP_SSL_HELPER_PREFIX: "ldap"
|
||||||
|
tty: true
|
||||||
|
stdin_open: true
|
||||||
|
volumes:
|
||||||
|
- /var/lib/ldap
|
||||||
|
- /etc/ldap/slapd.d
|
||||||
|
- /container/service/slapd/assets/certs/
|
||||||
|
ports:
|
||||||
|
- "389:389"
|
||||||
|
- "636:636"
|
||||||
|
domainname: "ldap.data.coop" # important: same as hostname
|
||||||
|
hostname: "ldap.data.coop"
|
||||||
|
networks:
|
||||||
|
- external_services
|
||||||
|
|
||||||
|
phpldapadmin:
|
||||||
|
image: osixia/phpldapadmin:latest
|
||||||
|
container_name: phpldapadmin
|
||||||
|
environment:
|
||||||
|
PHPLDAPADMIN_LDAP_HOSTS: "openldap"
|
||||||
|
PHPLDAPADMIN_HTTPS: "false"
|
||||||
|
PHPLDAPADMIN_TRUST_PROXY_SSL: "true"
|
||||||
|
VIRTUAL_HOST: ldap.data.coop
|
||||||
|
LETSENCRYPT_HOST: ldap.data.coop
|
||||||
|
LETSENCRYPT_EMAIL: valberg@orn.li
|
||||||
|
depends_on:
|
||||||
|
- openldap
|
||||||
|
networks:
|
||||||
|
- external_services
|
||||||
|
|
||||||
|
networks:
|
||||||
|
external_services:
|
||||||
|
external: true
|
Loading…
Reference in a new issue