2022-07-21 16:15:47 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2022-08-22 16:24:02 +02:00
|
|
|
redis:
|
|
|
|
image: redis:4.0
|
|
|
|
container_name: redis
|
|
|
|
ports:
|
|
|
|
- 6379:6379
|
|
|
|
environment:
|
|
|
|
- TZ=Europe/Paris
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
|
|
|
|
postgres:
|
2022-07-21 16:15:47 +02:00
|
|
|
image: postgres:${POSTGRES_VERSION:-13}-alpine
|
2022-08-22 16:24:02 +02:00
|
|
|
container_name: postgres
|
2022-07-21 16:15:47 +02:00
|
|
|
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
|
2022-08-22 16:24:02 +02:00
|
|
|
container_name: mailer
|
2022-07-21 16:15:47 +02:00
|
|
|
ports:
|
|
|
|
- 1025:1025
|
|
|
|
- 1080:1080
|
|
|
|
|
|
|
|
mercure:
|
|
|
|
image: dunglas/mercure
|
2022-08-22 16:24:02 +02:00
|
|
|
container_name: mercure
|
2022-07-21 16:15:47 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "80"
|
|
|
|
environment:
|
|
|
|
SERVER_NAME: ':80'
|
|
|
|
MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!'
|
|
|
|
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!'
|
|
|
|
MERCURE_EXTRA_DIRECTIVES: |
|
2022-07-21 16:33:00 +02:00
|
|
|
cors_origins https://127.0.0.1:8000
|
2022-07-21 16:15:47 +02:00
|
|
|
# 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
|
|
|
|
|
2022-08-22 16:24:02 +02:00
|
|
|
openldap:
|
|
|
|
image: osixia/openldap:1.5.0
|
|
|
|
container_name: openldap
|
|
|
|
environment:
|
|
|
|
LDAP_LOG_LEVEL: "256"
|
|
|
|
LDAP_ORGANISATION: "nineskeletor"
|
|
|
|
LDAP_DOMAIN: "nine.fr"
|
2022-08-24 14:40:10 +02:00
|
|
|
LDAP_ADMIN_PASSWORD: "changeme"
|
|
|
|
LDAP_CONFIG_PASSWORD: "changeme"
|
2022-08-22 16:24:02 +02:00
|
|
|
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
|
|
|
|
|
2022-08-24 14:40:10 +02:00
|
|
|
minio1:
|
|
|
|
image: minio/minio:RELEASE.2021-01-16T02-19-44Z
|
|
|
|
container_name: minio1
|
|
|
|
volumes:
|
|
|
|
- data1-1:/data1
|
|
|
|
- data1-2:/data2
|
|
|
|
expose:
|
|
|
|
- "9000"
|
|
|
|
environment:
|
|
|
|
MINIO_ROOT_USER: minio
|
|
|
|
MINIO_ROOT_PASSWORD: changeme
|
|
|
|
command: server http://minio{1...4}/data{1...2}
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
minio2:
|
|
|
|
image: minio/minio:RELEASE.2021-01-16T02-19-44Z
|
|
|
|
container_name: minio2
|
|
|
|
volumes:
|
|
|
|
- data2-1:/data1
|
|
|
|
- data2-2:/data2
|
|
|
|
expose:
|
|
|
|
- "9000"
|
|
|
|
environment:
|
|
|
|
MINIO_ROOT_USER: minio
|
|
|
|
MINIO_ROOT_PASSWORD: changeme
|
|
|
|
command: server http://minio{1...4}/data{1...2}
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
minio3:
|
|
|
|
image: minio/minio:RELEASE.2021-01-16T02-19-44Z
|
|
|
|
container_name: minio3
|
|
|
|
volumes:
|
|
|
|
- data3-1:/data1
|
|
|
|
- data3-2:/data2
|
|
|
|
expose:
|
|
|
|
- "9000"
|
|
|
|
environment:
|
|
|
|
MINIO_ROOT_USER: minio
|
|
|
|
MINIO_ROOT_PASSWORD: changeme
|
|
|
|
command: server http://minio{1...4}/data{1...2}
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
minio4:
|
|
|
|
image: minio/minio:RELEASE.2021-01-16T02-19-44Z
|
|
|
|
container_name: minio4
|
|
|
|
volumes:
|
|
|
|
- data4-1:/data1
|
|
|
|
- data4-2:/data2
|
|
|
|
expose:
|
|
|
|
- "9000"
|
|
|
|
environment:
|
|
|
|
MINIO_ROOT_USER: minio
|
|
|
|
MINIO_ROOT_PASSWORD: changeme
|
|
|
|
command: server http://minio{1...4}/data{1...2}
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:1.19.2-alpine
|
|
|
|
volumes:
|
|
|
|
- ./containers/minio/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
|
|
ports:
|
|
|
|
- "9000:9000"
|
|
|
|
depends_on:
|
|
|
|
- minio1
|
|
|
|
- minio2
|
|
|
|
- minio3
|
|
|
|
- minio4
|
|
|
|
|
2022-07-21 16:15:47 +02:00
|
|
|
volumes:
|
|
|
|
db-data:
|
|
|
|
mercure_data:
|
|
|
|
mercure_config:
|
2022-08-24 14:40:10 +02:00
|
|
|
data1-1:
|
|
|
|
data1-2:
|
|
|
|
data2-1:
|
|
|
|
data2-2:
|
|
|
|
data3-1:
|
|
|
|
data3-2:
|
|
|
|
data4-1:
|
|
|
|
data4-2:
|