generated from zMynxx/java-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
41 lines (40 loc) · 1.08 KB
/
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
version: '3.8'
networks:
sandbox:
name: dev-network
services:
app:
container_name: java-dev
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile.jdk
target: base
args:
JAVA_VERSION: &version 11
DATE: &date $(date +'%Y-%m-%d')
labels:
com.zmynxx.description: "This is a development environment for Java applications."
com.zmynxx.department: "DevOps"
com.zmynxx.maintainer-email: "[email protected]"
com.zmynxx.repository: "https://github.com/zMynxx"
com.zmynxx.maintainer: "Lior Dux"
com.zmynxx.release-date: *date
com.zmynxx.version: "1.0.0"
com.zmynxx.java.version: *version
tags:
- druxx/maven-jdk:latest
environment:
- TZ=Asia/Jerusalem
tty: true
stdin_open: true
working_dir: /home/developer/project
entrypoint: ["sleep", "infinity"]
volumes:
- ./.m2:/home/developer/.m2
- ./project:/home/developer/project
# ports:
# - "8080:8080"
networks:
- sandbox
restart: unless-stopped