-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
53 lines (49 loc) · 1.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
# Use root/example as user/password credentials
version: '3.1'
networks:
bigdata:
driver: bridge
services:
pyspark:
image: avnish327030/pyspark-3.2.1:latest
container_name: pyspark
restart: always
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
ports:
- '4040:4040'
volumes:
- './mysql-kafka-s3:/project'
networks:
- bigdata
db:
image: mysql
container_name: mysql
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
# (this is just an example, not intended to be a production configuration)
command: --default-authentication-plugin=mysql_native_password
ports:
- '3306:3306'
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
volumes:
- './datadir:/var/lib/mysql'
networks:
- bigdata
adminer:
image: adminer
restart: always
ports:
- 8085:8080
networks:
- bigdata
older_pyspark:
image: avnish327030/pyspark-2.4.8-hadoop-3.0:latest
container_name: pyspark_v2.4.8
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
volumes:
- './kafka-redshift:/project'