summaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: 5850b98966b7327366bb7f5b1e356758f65300b4 (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
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
    networks:
      - default
    volumes:
      - ./redis/data/:/data

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