diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..44c5e04 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,36 @@ +version: '3.6' + + + + greenlight: + image: onenetcom/greenlight + restart: unless-stopped + env_file: .env + environment: + DB_ADAPTER: postgresql + DB_HOST: postgres + DB_NAME: greenlight + DB_USERNAME: postgres + DB_PASSWORD: ${POSTGRESQL_SECRET:-password} + + BIGBLUEBUTTON_ENDPOINT: https://${DOMAIN}/bigbluebutton/api/ + + BIGBLUEBUTTON_SECRET: ${SHARED_SECRET} + SECRET_KEY_BASE: ${RAILS_SECRET} + ports: + - 10.7.7.1:5000:80 + + postgres: + image: postgres:12-alpine + restart: unless-stopped + environment: + POSTGRES_DB: greenlight + POSTGRES_USER: postgres + POSTGRES_PASSWORD: ${POSTGRESQL_SECRET:-password} + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 10s + timeout: 5s + retries: 5 + volumes: + - ./postgres-data:/var/lib/postgresql/data