This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
66 lines (62 loc) · 1.69 KB
/
docker-compose.yaml
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
63
64
65
66
version: '3.8'
services:
db:
image: postgres:14.5-alpine
container_name: postgres
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
volumes:
- db:/var/lib/postgresql/data
sqlpad:
image: sqlpad/sqlpad:latest
container_name: sqlpad
hostname: sqlpad
depends_on:
- db
ports:
- 3000:3000
environment:
SQLPAD_ADMIN: 'admin@sqlpad.com'
SQLPAD_ADMIN_PASSWORD: 'admin'
SQLPAD_AUTH_DISABLED: "true"
SQLPAD_AUTH_DISABLED_DEFAULT_ROLE: "admin"
SQLPAD_APP_LOG_LEVEL: debug
SQLPAD_WEB_LOG_LEVEL: warn
SQLPAD_SEED_DATA_PATH: /etc/sqlpad/seed-data
SQLPAD_CONNECTIONS__pgdemo__name: Postgres
SQLPAD_CONNECTIONS__pgdemo__driver: postgres
SQLPAD_CONNECTIONS__pgdemo__host: postgres
SQLPAD_CONNECTIONS__pgdemo__database: postgres
SQLPAD_CONNECTIONS__pgdemo__username: postgres
SQLPAD_CONNECTIONS__pgdemo__password: postgres
SQLPAD_CONNECTIONS__pgdemo__multiStatementTransactionEnabled: 'true'
SQLPAD_CONNECTIONS__pgdemo__idleTimeoutSeconds: 86400
volumes:
- db_gui:/etc/sqlpad/seed-data
# etl:
# build:
# context: ./etl
# dockerfile: Dockerfile
# stdin_open: true
# tty: true
# volumes:
# - ./etl:/app
spark:
image: jupyter/pyspark-notebook
container_name: pyspark
volumes:
- ./app/etl/spark:/home/jovyan/work
ports:
- 8888:8888 # port for jupyter notebook
- 4050:4050 #Setting the port to 4050 to avoid conflicts with the Spark UI
env_file:
- app/etl/.env
volumes:
db:
driver: local
db_gui:
driver: local