-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
43 lines (43 loc) · 1.32 KB
/
docker-compose.yml
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
# Runs SQL LRS with Postgres - Provided for demonstration purposes only!
# To run: docker compose up
# See the Docker Compose docs for more info: https://docs.docker.com/compose/
volumes:
db_data:
services:
db:
image: postgres
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: lrsql_user
POSTGRES_PASSWORD: lrsql_password
POSTGRES_DB: lrsql_db
ports:
- "5432:5432" # Useful if we only want to run the DB w/o other services
clamav:
image: clamav/clamav:1.2.1
lrs:
# build: . # switch to this for active dev
image: yetanalytics/lrsql:latest
command:
- /lrsql/bin/run_postgres.sh
ports:
- "8080:8080"
depends_on:
- db
environment:
LRSQL_API_KEY_DEFAULT: my_key
LRSQL_API_SECRET_DEFAULT: my_secret
LRSQL_ADMIN_USER_DEFAULT: my_username
LRSQL_ADMIN_PASS_DEFAULT: my_password
LRSQL_DB_HOST: db
LRSQL_DB_NAME: lrsql_db
LRSQL_DB_USER: lrsql_user
LRSQL_DB_PASSWORD: lrsql_password
# If Postgres is too slow to start, increase this
LRSQL_POOL_INITIALIZATION_FAIL_TIMEOUT: 10000
# Set to true if using dev UI, domain name, proxy server, etc.
LRSQL_ALLOW_ALL_ORIGINS: false
# Enable ClamAV Scanning
LRSQL_ENABLE_CLAMAV: true
LRSQL_CLAMAV_HOST: clamav