-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (34 loc) · 1000 Bytes
/
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
version: '3.8'
services:
sample-data:
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
# Deprecated but works for shelling in?
PGPASSWORD: postgres
restart: always
volumes:
- ./data/:/docker-entrypoint-initdb.d/
ports:
- 5432:5432
sqlpad:
image: sqlpad/sqlpad:5.5
depends_on:
- sample-data
ports:
- "3000:3000"
environment:
SQLPAD_AUTH_DISABLED: 'true'
SQLPAD_AUTH_DISABLED_DEFAULT_ROLE: 'admin'
SQLPAD_APP_LOG_LEVEL: debug
SQLPAD_WEB_LOG_LEVEL: warn
SQLPAD_CONNECTIONS__psql__name: postgres
SQLPAD_CONNECTIONS__psql__driver: postgres
SQLPAD_CONNECTIONS__psql__host: sample-data
SQLPAD_CONNECTIONS__psql__username: postgres
SQLPAD_CONNECTIONS__psql__password: postgres
SQLPAD_CONNECTIONS__psql__multiStatementTransactionEnabled: 'true'
SQLPAD_CONNECTIONS__psql__idleTimeoutSeconds: 86400
volumes:
data: