-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (32 loc) · 922 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
version: "3"
volumes:
home:
services:
dev:
build:
context: "https://github.com/sebfisch/docker-java-dev.git#latest"
# Adjust the build args to reflect your local setup
args:
JAVA_VERSION: 11
# UID: 501
# GID: 501
hostname: java-dev
command: tmux -u new -s java-concurrency-code
environment:
# Adjust to reflect your own timezone
- TZ=Europe/Berlin
# Adjust to reflect your own X server
- DISPLAY=docker.for.win.localhost:0.0
# The following line disables class data sharing for the JVM
# which leads to a warning message on some architectures.
# - JAVA_OPTIONS=-Xshare:off
volumes:
- home:/home
- ~/.ssh:/home/me/.ssh/:ro
- .:/home/me/java-concurrency-code
working_dir: /home/me/java-concurrency-code
deploy:
resources:
limits:
cpus: 12
memory: 8G