87 lines
2.0 KiB
YAML
87 lines
2.0 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
redis:
|
|
image: redis:4.0
|
|
container_name: redis
|
|
ports:
|
|
- 6379:6379
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
postgres:
|
|
image: postgres:${POSTGRES_VERSION:-13}-alpine
|
|
container_name: postgres
|
|
environment:
|
|
POSTGRES_DB: ${POSTGRES_DB:-app}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}
|
|
POSTGRES_USER: ${POSTGRES_USER:-symfony}
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data:rw
|
|
|
|
mailer:
|
|
image: schickling/mailcatcher
|
|
container_name: mailer
|
|
ports:
|
|
- 1025:1025
|
|
- 1080:1080
|
|
|
|
mercure:
|
|
image: dunglas/mercure
|
|
container_name: mercure
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80"
|
|
environment:
|
|
SERVER_NAME: ':80'
|
|
MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!'
|
|
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!'
|
|
MERCURE_EXTRA_DIRECTIVES: |
|
|
cors_origins https://127.0.0.1:8000
|
|
# Comment the following line to disable the development mode
|
|
command: /usr/bin/caddy run -config /etc/caddy/Caddyfile.dev
|
|
volumes:
|
|
- mercure_data:/data
|
|
- mercure_config:/config
|
|
|
|
openldap:
|
|
image: osixia/openldap:1.5.0
|
|
container_name: openldap
|
|
environment:
|
|
LDAP_LOG_LEVEL: "256"
|
|
LDAP_ORGANISATION: "nineskeletor"
|
|
LDAP_DOMAIN: "nine.fr"
|
|
LDAP_ADMIN_PASSWORD: "admin"
|
|
LDAP_CONFIG_PASSWORD: "config"
|
|
LDAP_READONLY_USER: "true"
|
|
LDAP_READONLY_USER_USERNAME: "readonly"
|
|
LDAP_READONLY_USER_PASSWORD: "readonly"
|
|
LDAP_TLS: "false"
|
|
volumes:
|
|
- /var/lib/ldap
|
|
- /etc/ldap/slapd.d
|
|
- /container/service/slapd/assets/certs/
|
|
ports:
|
|
- "389:389"
|
|
- "636:636"
|
|
|
|
phpldapadmin:
|
|
image: osixia/phpldapadmin:latest
|
|
container_name: phpldapadmin
|
|
environment:
|
|
PHPLDAPADMIN_LDAP_HOSTS: "openldap"
|
|
PHPLDAPADMIN_HTTPS: "false"
|
|
ports:
|
|
- "8080:80"
|
|
depends_on:
|
|
- openldap
|
|
|
|
volumes:
|
|
db-data:
|
|
mercure_data:
|
|
mercure_config:
|