docker-compose environment for the entire v.st system
https://v.st/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
version: '3'
|
|
|
|
volumes:
|
|
mysql_data:
|
|
driver: local
|
|
|
|
services:
|
|
mysql:
|
|
image: mysql:5.7
|
|
volumes:
|
|
- ../data/keycloak/database:/var/lib/mysql
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: root
|
|
MYSQL_DATABASE: keycloak
|
|
MYSQL_USER: keycloak
|
|
MYSQL_PASSWORD: password
|
|
|
|
keycloak:
|
|
image: quay.io/keycloak/keycloak:18.0.0
|
|
entrypoint: /opt/keycloak/bin/kc.sh start --hostname="$${KEYCLOAK_HOSTNAME}" --proxy=edge
|
|
user: "0:0" # otherwise the persistent data directory is not writable
|
|
env_file:
|
|
- ../env.production
|
|
- env.production
|
|
- env.secrets
|
|
environment:
|
|
DB_VENDOR: MYSQL
|
|
DB_ADDR: mysql
|
|
DB_DATABASE: keycloak
|
|
DB_USER: keycloak
|
|
DB_PASSWORD: password
|
|
KEYCLOAK_ADMIN: admin
|
|
# KEYCLOAK_ADMIN_PASSWORD should be set in env.secrets
|
|
PROXY_ADDRESS_FORWARDING: 'true'
|
|
volumes:
|
|
- ../data/keycloak/certs:/etc/x509/https
|
|
- ../data/keycloak/keycloak:/opt/keycloak/data
|
|
ports:
|
|
- 8080:8080
|
|
depends_on:
|
|
- mysql
|
|
|