From b451f1794cedabb1063b2b47670ff01a47ff41e8 Mon Sep 17 00:00:00 2001 From: sporada Date: Fri, 30 Apr 2021 13:46:37 +0200 Subject: [PATCH] Add docker-compose.yml --- osp/docker-compose.yml | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 osp/docker-compose.yml diff --git a/osp/docker-compose.yml b/osp/docker-compose.yml new file mode 100644 index 0000000..fecda3b --- /dev/null +++ b/osp/docker-compose.yml @@ -0,0 +1,60 @@ +version: '3.5' + +networks: + default: + external: + name: traefik_default + +services: + osp-app: + depends_on: + - osp-db + - osp-redis + container_name: osp-app + env_file: live.env + image: deamos/openstreamingplatform:latest + labels: + # Watchtower + - "com.centurylinklabs.watchtower.enable=true" + # Routes + - "traefik.enable=true" + - "traefik.http.routers.nextcloud.entrypoints=websecure" + - "traefik.http.routers.nextcloud.rule=Host(`osp.${DOMAIN}`)" + - "traefik.http.routers.nextcloud.tls=true" + - "traefik.http.routers.nextcloud.tls.certresolver=myresolver" + - "traefik.http.services.nextcloud.loadbalancer.server.port=80" + networks: + - default + restart: unless-stopped + volumes: + - ${OSP_ROOT}/data:/var/www + + osp-db: + image: mariadb:10 + container_name: osp-db + restart: unless-stopped + env_file: live.env + labels: + # Watchtower + - "com.centurylinklabs.watchtower.enable=true" + networks: + - default + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + - ${OSP_ROOT}/db:/var/lib/mysq + + osp-redis: + image: redis:6-alpine + container_name: osp-redis + command: redis-server --requirepass ${REDIS_HOST_PASSWORD} + labels: + - "com.centurylinklabs.watchtower.enable=true" + networks: + - default + restart: unless-stopped + volumes: + - ${OSP_ROOT}/redis:/data + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro +