-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.77 KB
/
docker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.77 KB
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
# Docker Compose configuration file
#
# References:
#
# * Compose Specification | Compose file reference | Reference | Docker Docs
# https://docs.docker.com/compose/compose-file/
#
# Copyright 2025 林博仁(Buo-ren Lin) <buo.ren.lin@gmail.com>
# SPDX-License-Identifier: CC-BY-SA-4.0
name: getting-started-with-java-lab
services:
# Environment for developing the project
dev-environment:
container_name: getting-started-with-java-lab-dev
hostname: getting-started-with-java-lab-dev
image: ubuntu:24.04
volumes:
- type: bind
source: ./
target: /project
environment:
# Pass host proxy settings to the container
- http_proxy
- HTTP_PROXY
- https_proxy
- HTTPS_PROXY
- no_proxy
- NO_PROXY
# Set this environment variable to your local timezone settings for proper operation timestamp
#- TZ=CST-8
# Avoid debconf interactive prompts on Debian-like systems
- DEBIAN_FRONTEND=noninteractive
init: true
command: sleep infinity
profiles:
- dev
# Environment for testing the project
test-environment:
container_name: getting-started-with-java-lab-test
hostname: getting-started-with-java-lab-test
image: ubuntu:24.04
volumes:
- type: bind
source: ./
target: /project
environment:
# Pass host proxy settings to the container
- http_proxy
- HTTP_PROXY
- https_proxy
- HTTPS_PROXY
- no_proxy
- NO_PROXY
# Set this environment variable to your local timezone settings for proper operation timestamp
#- TZ=CST-8
# Avoid debconf interactive prompts on Debian-like systems
- DEBIAN_FRONTEND=noninteractive
init: true
command: sleep infinity
profiles:
- test