2022-04-07 11:49:17 +02:00
|
|
|
services:
|
2025-09-11 17:49:56 +02:00
|
|
|
haproxy:
|
|
|
|
image: haproxy:2.6.22
|
|
|
|
volumes:
|
|
|
|
- ./misc/compose/haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
|
|
|
|
ports:
|
|
|
|
- 10500:10500
|
|
|
|
- 10501:10501
|
|
|
|
# - 10502:10502
|
|
|
|
- 10503:10503
|
2022-12-13 15:46:24 +01:00
|
|
|
hydra-sql:
|
2022-12-09 17:31:07 +01:00
|
|
|
build:
|
2023-12-13 15:41:54 +01:00
|
|
|
context: .
|
2025-09-11 17:49:56 +02:00
|
|
|
dockerfile: ./misc/images/hydra-sql-dev/Dockerfile
|
2022-12-09 17:31:07 +01:00
|
|
|
args:
|
2025-09-11 17:49:56 +02:00
|
|
|
- SERVER_NAME=http://localhost:10500
|
2022-12-09 17:31:07 +01:00
|
|
|
links:
|
|
|
|
- hydra
|
2025-03-24 17:20:17 +01:00
|
|
|
depends_on:
|
|
|
|
- redis
|
2025-09-11 17:49:56 +02:00
|
|
|
tty: true
|
|
|
|
# develop:
|
|
|
|
# watch:
|
|
|
|
# - action: rebuild
|
|
|
|
# path: ./misc/images/hydra-sql-standalone
|
|
|
|
# - action: rebuild
|
|
|
|
# path: ./assets
|
|
|
|
# - action: sync
|
|
|
|
# path: ./templates
|
|
|
|
# target: /app/templates
|
|
|
|
# - action: sync
|
|
|
|
# path: ./translations
|
|
|
|
# target: /app/translations
|
|
|
|
# - action: sync
|
|
|
|
# path: ./config
|
|
|
|
# target: /app/config
|
|
|
|
# - action: sync
|
|
|
|
# path: ./src
|
|
|
|
# target: /app/src
|
2022-12-09 17:31:07 +01:00
|
|
|
environment:
|
2025-09-11 17:49:56 +02:00
|
|
|
- SERVER_NAME=http://localhost:10500
|
2024-10-08 14:38:19 +02:00
|
|
|
- APP_ENV=dev
|
2025-09-11 17:49:56 +02:00
|
|
|
- APP_DEBUG=true
|
2023-12-13 15:41:54 +01:00
|
|
|
- PHP_FPM_MEMORY_LIMIT=128m
|
2022-12-13 15:46:24 +01:00
|
|
|
- APP_LOCALES=fr,en
|
2022-12-09 17:31:07 +01:00
|
|
|
- HYDRA_ADMIN_BASE_URL=http://hydra:4445
|
|
|
|
- TRUSTED_PROXIES=127.0.0.1,REMOTE_ADDR,localhost
|
2025-09-11 17:49:56 +02:00
|
|
|
- ISSUER_URL=http://localhost:10502
|
|
|
|
- BASE_URL=http://localhost:10500
|
2022-12-13 15:46:24 +01:00
|
|
|
- DB_USER=lasql
|
|
|
|
- DB_PASSWORD=lasql
|
|
|
|
- DEFAULT_LOCALE=fr
|
|
|
|
- DSN_REMOTE_DATABASE=pgsql:host='postgres';port=5432;dbname=lasql;
|
2023-12-13 15:41:54 +01:00
|
|
|
- HASH_ALGO_LEGACY="sha256"
|
2022-12-16 15:00:14 +01:00
|
|
|
- SECURITY_PATTERN=password,salt,pepper
|
2024-03-28 11:13:41 +01:00
|
|
|
- CADDY_HTTP_PORT=8071
|
2022-04-07 11:49:17 +02:00
|
|
|
|
2022-12-09 17:31:07 +01:00
|
|
|
oidc-test:
|
|
|
|
image: bornholm/oidc-test:v0.0.0-1-g936a77e
|
|
|
|
environment:
|
|
|
|
- LOG_LEVEL=0
|
2025-09-11 17:49:56 +02:00
|
|
|
- HTTP_ADDRESS=0.0.0.0:10502
|
2022-12-09 17:31:07 +01:00
|
|
|
- OIDC_CLIENT_ID=oidc-test
|
|
|
|
- OIDC_CLIENT_SECRET=oidc-test-123456
|
2025-09-11 17:49:56 +02:00
|
|
|
- OIDC_ISSUER_URL=http://localhost:10501/
|
|
|
|
- OIDC_REDIRECT_URL=http://localhost:10502
|
|
|
|
- OIDC_POST_LOGOUT_REDIRECT_URL=http://localhost:10502
|
2022-12-09 17:31:07 +01:00
|
|
|
depends_on:
|
|
|
|
hydra:
|
|
|
|
condition: service_healthy
|
2023-12-11 14:33:28 +01:00
|
|
|
network_mode: host
|
2022-05-03 08:54:45 +02:00
|
|
|
|
2022-12-09 17:31:07 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
hydra:
|
2023-06-12 15:26:56 +02:00
|
|
|
image: cadoles/hydra-v1:v0.0.0-151-gc9c6fb1
|
2022-12-09 17:31:07 +01:00
|
|
|
volumes:
|
2023-12-11 14:33:28 +01:00
|
|
|
- ./misc/compose/hydra/clients.d:/etc/hydra/clients.d
|
2022-12-09 17:31:07 +01:00
|
|
|
environment:
|
|
|
|
- LOG_LEAK_SENSITIVE_VALUES=true
|
|
|
|
- HYDRA_ALLOW_INSECURE=yes
|
2025-09-11 17:49:56 +02:00
|
|
|
- HYDRA_URLS_SELF_ISSUER=http://localhost:10501/
|
|
|
|
- HYDRA_URLS_LOGOUT=http://localhost:10500/logout
|
|
|
|
- HYDRA_URLS_LOGIN=http://localhost:10500/
|
|
|
|
- HYDRA_URLS_CONSENT=http://localhost:10500/connect/consent
|
|
|
|
- HYDRA_URLS_ERROR=http://localhost:10500/error
|
2022-12-09 17:31:07 +01:00
|
|
|
- HYDRA_LEVEL=debug
|
|
|
|
- HYDRA_DSN=postgres://lasql:lasql@postgres:5432/hydra
|
|
|
|
- HYDRA_WAIT4X_DATABASE_DSN=postgres://lasql:lasql@postgres:5432/hydra?sslmode=disable
|
|
|
|
- HYDRA_WAIT4X_DATABASE_TYPE=postgresql
|
|
|
|
healthcheck:
|
2024-03-28 11:13:41 +01:00
|
|
|
test:
|
|
|
|
[
|
|
|
|
"CMD",
|
|
|
|
"wget",
|
|
|
|
"--spider",
|
|
|
|
"-q",
|
|
|
|
"http://127.0.0.1:4444/.well-known/openid-configuration",
|
|
|
|
]
|
2022-12-09 17:31:07 +01:00
|
|
|
interval: 10s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 10
|
|
|
|
start_period: 10s
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres:15-alpine
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: lasql
|
|
|
|
POSTGRES_DB: lasql
|
|
|
|
POSTGRES_PASSWORD: lasql
|
|
|
|
volumes:
|
2023-12-11 14:33:28 +01:00
|
|
|
- ./misc/compose/postgres/init-db.d:/docker-entrypoint-initdb.d/:ro
|
2022-12-09 17:31:07 +01:00
|
|
|
- postgres:/var/lib/pgsql/data
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
|
|
|
|
pgadmin:
|
|
|
|
image: dpage/pgadmin4
|
2025-09-11 17:49:56 +02:00
|
|
|
# ports:
|
|
|
|
# - 10503:80
|
2022-12-09 17:31:07 +01:00
|
|
|
restart: always
|
|
|
|
environment:
|
2024-03-28 11:13:41 +01:00
|
|
|
PGADMIN_DEFAULT_EMAIL: admin@admin.com
|
|
|
|
PGADMIN_DEFAULT_PASSWORD: admin
|
|
|
|
PGADMIN_SERVER_JSON_FILE: /pgadminfile/server.json
|
2022-12-09 17:31:07 +01:00
|
|
|
volumes:
|
2023-12-11 14:33:28 +01:00
|
|
|
- ./misc/compose/pgadmin:/pgadminfile/:ro
|
2022-12-13 15:46:24 +01:00
|
|
|
mariadb:
|
|
|
|
image: mariadb:10.10
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: lasql
|
|
|
|
MYSQL_USER: lasql
|
|
|
|
MYSQL_PASSWORD: lasql
|
|
|
|
MYSQL_ROOT_PASSWORD: lasql
|
|
|
|
TZ: Europe/Paris
|
|
|
|
volumes:
|
2023-12-11 14:33:28 +01:00
|
|
|
- ./misc/compose/mariadb/init-db.d:/docker-entrypoint-initdb.d/:ro
|
2022-12-13 15:46:24 +01:00
|
|
|
- mariadb:/var/lib/mysql
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2023-06-12 15:26:56 +02:00
|
|
|
redis:
|
|
|
|
image: redis:7.2-rc2-alpine
|
|
|
|
environment:
|
|
|
|
- TZ=Europe/Paris
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2025-03-24 17:20:17 +01:00
|
|
|
|
|
|
|
altcha:
|
|
|
|
image: reg.cadoles.com/cadoles/altcha:2024.10.29-develop.1213.22e038b
|
|
|
|
environment:
|
|
|
|
ALTCHA_HMAC_KEY: 'change_me'
|
2022-12-09 17:31:07 +01:00
|
|
|
volumes:
|
2022-12-13 15:46:24 +01:00
|
|
|
postgres:
|
2023-12-11 14:33:28 +01:00
|
|
|
mariadb:
|