添加 'docker-compose.yml '
This commit is contained in:
parent
1b742d82cd
commit
612c7abc02
36
docker-compose.yml
Normal file
36
docker-compose.yml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user