-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
35 lines (33 loc) · 1 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
version: '3'
services:
drill:
build:
# We build the file from the current folder
context: ./build
# The `Dockerfile contains the build instructions
dockerfile: Dockerfile
# We hand over the `DRILL_VERSION` variable to the build.
args:
- DRILL_VERSION=${DRILL_VERSION}
restart: on-failure
hostname: drill
container_name: drill
environment:
# We hand over the `DRILL_VERSION` variable to the container enviroment.
# This makes the variable available to the command script
- DRILL_VERSION=${DRILL_VERSION}
volumes:
# Expose the build directory to get the JDBC driver
- ./build:/drill
# The data directory for the data files.
- ./data:/data
# This is the script that is executed when the container is started.
command: ./run_drill.sh
# We make the standard drill ports available
ports:
- "8047:8047"
- "31010:31010"
# We allow for console
tty: true
# SETUP
#chmod +x run_drill.sh