summaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: 6b1cf5f11b4b7336905c8b879cc11836b3ded9a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3'

volumes:
  database_data:
    driver: local

services:
  nginx:
    image: nginx:latest
    restart: "no"
    volumes:
      - ./nginx/nginx.conf:/etc/nginx/nginx.conf
      - ./nginx/sites-enabled:/etc/nginx/sites-enabled
      - ./nginx/sites.template:/etc/nginx/sites-available/sites.template
      - ./nginx/default/html:/var/www/html
      - ./nginx/log/nginx:/var/log/nginx
      - ./nginx/letsencrypt/:/etc/letsencrypt
    ports:
      - "80:80"
      - "443:443"
    environment:
      - NGINX_DOMAIN=${DOMAIN_SUB:-lab}.${DOMAIN_ROOT:-bigbluebutton.org}
    depends_on:
      - scalelite
    command: /bin/bash -c "envsubst '$$NGINX_DOMAIN' < /etc/nginx/sites-available/sites.template > /etc/nginx/sites-enabled/sites.conf && exec nginx -g 'daemon off;'"

  redis:
    image: redis
    restart: "no"
    ports:
      - 127.0.0.1:6379:6379
    expose:
      - "6379"
    networks:
      - default
#    volumes:
#      - ./redis/data/dump.rdb:/var/lib/redis/dump.rdb
#      - ./redis/log/:/var/log/

  scalelite:
    entrypoint: [bin/start]
#    image: blindsidenetwks/scalelite:master
    image: blindsidenetwks/scalelite:docker-pro
    restart: "no"
    ports:
      - 127.0.0.1:3000:3000
    expose:
      - "3000"
    links:
      - redis
    networks:
      - default
    volumes:
      - ./scalelite/log:/usr/src/app/log
      - ./scalelite/tmp/pids/:/usr/src/app/tmp/pids
      - ./scalelite/bin/start:/usr/src/app/bin/start
#    logging:
#      driver: syslog
#      options:
#        syslog-address: udp://logs.$DOMAINNAME:1514
#        tag: sl.$DOMAINNAME
    env_file: ./scalelite/.env
    environment:
      - DOMAINNAME=${DOMAIN_SUB:-lab}.${DOMAIN_ROOT:-bigbluebutton.org}
      - REDIS_URL=redis://redis.${DOMAIN_SUB:-xlab}.${DOMAIN_ROOT:-bigbluebutton.org}:6379
      - URL_HOST=sl.${DOMAIN_SUB:-lab}.${DOMAIN_ROOT:-bigbluebutton.org}