mirror of
https://github.com/michelleDeko/scalelite-run.git
synced 2025-12-16 22:32:10 +01:00
updates for extra formats and general configs
This commit is contained in:
@@ -14,7 +14,7 @@ volumes:
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:11-alpine
|
||||
image: ${POSTGRES_DOCKER_IMAGE:-postgres:11-alpine}
|
||||
container_name: postgres
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
@@ -26,7 +26,7 @@ services:
|
||||
- postgres-data-dev:/var/lib/postgresql/data
|
||||
|
||||
redis:
|
||||
image: redis:6.2-alpine
|
||||
image: ${REDIS_DOCKER_IMAGE:-redis:6.2-alpine}
|
||||
container_name: redis
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
@@ -35,17 +35,26 @@ services:
|
||||
- redis-data-dev:/data
|
||||
- ./data/redis/conf/redis.conf.template:/usr/local/etc/redis/redis.conf.template
|
||||
- /etc/letsencrypt:/etc/letsencrypt
|
||||
command: /bin/sh -c "sed -e 's/$$HOSTNAME/redis.${DOMAIN_NAME:-xlab.blindside-dev.com}/' /usr/local/etc/redis/redis.conf.template > /usr/local/etc/redis/redis.conf && exec redis-server --appendonly yes"
|
||||
command: /bin/sh -c "sed -e 's/$$HOSTNAME/${REDIS_HOST:-redis}.${DOMAIN_NAME:-user.blindside-ps.dev}/' /usr/local/etc/redis/redis.conf.template > /usr/local/etc/redis/redis.conf && exec redis-server --appendonly yes"
|
||||
|
||||
scalelite-nginx:
|
||||
image: nginx:1.24
|
||||
container_name: scalelite-nginx
|
||||
certbot:
|
||||
image: ${CERTBOT_DOCKER_IMAGE:-certbot/certbot}
|
||||
container_name: certbot
|
||||
volumes:
|
||||
- ./log/certbot/:/var/log/letsencrypt
|
||||
- ./data/certbot/conf/:/etc/letsencrypt
|
||||
- ./data/certbot/www/:/var/www/certbot
|
||||
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
||||
|
||||
scalelite-proxy:
|
||||
image: ${NGINX_DOCKER_IMAGE:-nginx:1.24}
|
||||
container_name: scalelite-proxy
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
environment:
|
||||
- NGINX_HOSTNAME=${DOMAIN_NAME:-xlab.blindside-dev.com}
|
||||
- NGINX_HOSTNAME=${SL_HOST:-sl}.${DOMAIN_NAME:-user.blindside-ps.dev}
|
||||
volumes:
|
||||
- ./log/proxy-nginx/:/var/log/nginx
|
||||
- ./data/proxy/nginx/sites.template.${DOCKER_PROXY_NGINX_TEMPLATE:-scalelite-proxy}:/etc/nginx/sites.template
|
||||
@@ -132,34 +141,3 @@ services:
|
||||
- scalelite-api
|
||||
logging:
|
||||
driver: journald
|
||||
|
||||
keycloak:
|
||||
image: quay.io/keycloak/keycloak:19.0.3-legacy
|
||||
# image: quay.io/keycloak/keycloak:19.0.3
|
||||
# command: "start-dev --auto-build"
|
||||
container_name: keycloak
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# KEYCLOAK_ADMIN: admin
|
||||
# KEYCLOAK_ADMIN_PASSWORD: adminadmin
|
||||
# KC_DB_URL: postgres
|
||||
# KC_DB: keycloakdb
|
||||
# KC_DB_USERNAME: postgres
|
||||
# KC_DB_PASSWORD: password
|
||||
# KC_HOSTNAME_STRICT: "false"
|
||||
# KC_PROXY: edge
|
||||
KEYCLOAK_USER: admin
|
||||
KEYCLOAK_PASSWORD: adminadmin
|
||||
DB_VENDOR: POSTGRES
|
||||
DB_ADDR: postgres
|
||||
DB_DATABASE: keycloakdb
|
||||
DB_USER: postgres
|
||||
DB_PASSWORD: password
|
||||
PROXY_ADDRESS_FORWARDING: "true"
|
||||
volumes:
|
||||
- ./data/certbot/conf/:/etc/letsencrypt
|
||||
- ./data/certbot/conf/live/kc.${DOMAIN_NAME:-xlab.blindside-dev.com}/cert.pem:/etc/x509/https/tls.crt
|
||||
- ./data/certbot/conf/live/kc.${DOMAIN_NAME:-xlab.blindside-dev.com}/privkey.pem:/etc/x509/https/tls.key
|
||||
- ./data/keycloak/themes/demo:/opt/jboss/keycloak/themes/demo
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
Reference in New Issue
Block a user