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.
 
 
kasm_install/docker/docker-compose-db-manager.yaml

93 lines
2.2 KiB

version: '3'
services:
db:
container_name: kasm_db
image: postgres:9.5-alpine
restart: always
ports:
- "127.0.0.1:5432:5432"
networks:
- kasm_default_network
environment:
POSTGRES_PASSWORD: changeme
POSTGRES_USER: kasmapp
POSTGRES_DB: kasm
volumes:
- /opt/kasm/1.6.0/conf/database/data.sql:/docker-entrypoint-initdb.d/data.sql
- /opt/kasm/1.6.0/conf/database/:/tmp/
- kasm_db_1.6.0:/var/lib/postgresql/data
restart: always
kasm_redis:
container_name: kasm_redis
command: ["sh", "-c", "redis-server --requirepass $${REDIS_PASSWORD}"]
user: "${KASM_UID?}:${KASM_GID?}"
image: redis:5-alpine
restart: always
ports:
- "127.0.0.1:6379:6379"
networks:
- kasm_default_network
environment:
REDIS_PASSWORD: changeme
restart: always
kasm_api:
container_name: kasm_api
user: "${KASM_UID?}:${KASM_GID?}"
image: "kasmweb/api:1.6.0"
ports:
- "127.0.0.1::8080"
networks:
- kasm_default_network
volumes:
- /opt/kasm/1.6.0:/opt/kasm/current
depends_on:
- db
restart: always
kasm_manager:
container_name: kasm_manager
user: "${KASM_UID?}:${KASM_GID?}"
image: "kasmweb/manager:1.6.0"
ports:
- "127.0.0.1::8181"
networks:
- kasm_default_network
volumes:
- /opt/kasm/1.6.0:/opt/kasm/current
depends_on:
- db
restart: always
proxy:
container_name: kasm_proxy
image: "nginx:alpine"
ports:
- "127.0.0.1:443:443"
networks:
- kasm_default_network
volumes:
- /opt/kasm/1.6.0/conf/nginx:/etc/nginx/conf.d:ro
- /opt/kasm/1.6.0/certs/kasm_nginx.key:/etc/ssl/private/kasm_nginx.key
- /opt/kasm/1.6.0/certs/kasm_nginx.crt:/etc/ssl/certs/kasm_nginx.crt
- /opt/kasm/1.6.0/www:/srv/www:ro
depends_on:
- kasm_manager
- kasm_api
restart: always
kasm_share:
container_name: kasm_share
user: root
image: "kasmweb/share:1.6.0"
ports:
- "127.0.0.1::8182"
networks:
- kasm_default_network
volumes:
- /opt/kasm/1.6.0:/opt/kasm/current
restart: always
volumes:
kasm_db_1.6.0:
external: true
networks:
kasm_default_network:
external: true