-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
98 lines (90 loc) · 2.35 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: "3.9"
services:
spark:
image: docker.io/bitnami/spark:${SPARK_TAG}
container_name: ${PROJECT_NAME}-spark
hostname: spark
restart: unless-stopped
stop_grace_period: 10s
env_file: .env
environment:
SPARK_MODE: master
SPARK_RPC_AUTHENTICATION_ENABLED: no
SPARK_RPC_ENCRYPTION_ENABLED: no
SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED: no
SPARK_SSL_ENABLED: no
SPARK_USER: spark
ports:
- ${SPARK_UI_PORT}:8080
- ${SPARK_SUBMIT_PORT}:7077
spark-worker:
image: docker.io/bitnami/spark:${SPARK_TAG}
container_name: ${PROJECT_NAME}-spark-worker
hostname: spark_worker
restart: unless-stopped
stop_grace_period: 10s
env_file: .env
environment:
SPARK_MODE: worker
SPARK_MASTER_URL: spark://spark:7077
SPARK_WORKER_MEMORY: 1G
SPARK_WORKER_CORES: 1
SPARK_RPC_AUTHENTICATION_ENABLED: no
SPARK_RPC_ENCRYPTION_ENABLED: no
SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED: no
SPARK_SSL_ENABLED: no
SPARK_USER: spark
rstudio:
image: rocker/tidyverse:${TIDYVERSE_TAG}
container_name: ${PROJECT_NAME}-rstudio
hostname: rstudio
restart: unless-stopped
stop_grace_period: 10s
env_file: .env
environment:
SPARK_MASTER_URL: spark://spark:7077
SPARK_USER: spark
USER: $R_STUDIO_USER
PASSWORD: $R_STUDIO_PASSWORD
ROOT: "TRUE"
DISABLE_AUTH: "TRUE"
R_SEED: $R_SEED
build:
context: .
args:
TIDYVERSE_TAG: $TIDYVERSE_TAG
ports:
- ${R_STUDIO_PORT}:8787
volumes:
- ./r_home:/home
postgres:
image: postgres:${POSTGRES_TAG}
container_name: ${PROJECT_NAME}-postgres
hostname: postgres
restart: unless-stopped
stop_grace_period: 10s
env_file: .env
environment:
POSTGRES_PASSWORD: $DB_PASSWORD
POSTGRES_DB: $DB_NAME
POSTGRES_USER: $DB_USER
ports:
- ${DB_PORT}:5432
volumes:
- postgres-data:/var/lib/postgresql/data
- ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql
adminer:
image: adminer:${ADMINER_TAG}
container_name: ${PROJECT_NAME}-adminer
hostname: adminer
restart: unless-stopped
stop_grace_period: 10s
env_file: .env
ports:
- ${ADMINER_PORT}:8080
networks:
default:
name: $PROJECT_NAME
driver: bridge
volumes:
postgres-data: {}