-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
97 lines (91 loc) · 2.85 KB
/
docker-compose.yaml
File metadata and controls
97 lines (91 loc) · 2.85 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#####################################################
# This Docker Compose file contains two services
# Dependency-Track API Server
# Dependency-Track FrontEnd
#####################################################
x-environment:
&default-environment
# Route that should be used locally, if you are using pygmy, this route *must* end with .docker.amazee.io
LAGOON_ROUTE: &default-url http://${COMPOSE_PROJECT_NAME:-dependencytrack}.docker.amazee.io
# Uncomment if you like to have the system behave like in production
#LAGOON_ENVIRONMENT_TYPE: production
x-user:
&default-user
# The default user under which the containers should run. Change this if you are on linux and run with another user than id `1000`
user: '1000'
services:
apiserver:
build:
context: ./.lagoon
dockerfile: dependencytrack.dockerfile
depends_on:
postgres:
condition: service_healthy
labels:
lagoon.type: basic
lagoon.volumes.dtrack-data.path: /data
lagoon.service.port: 8080
deploy:
resources:
limits:
memory: 12288m
reservations:
memory: 8192m
restart_policy:
condition: on-failure
ports:
- '8081:8080'
volumes:
- 'dtrack-data:/data'
restart: unless-stopped
frontend:
build:
context: ./.lagoon
dockerfile: frontend.dockerfile
depends_on:
apiserver:
condition: service_healthy
environment:
# The base URL of the API server.
# NOTE:
# * This URL must be reachable by the browsers of your users.
# * The frontend container itself does NOT communicate with the API server directly, it just serves static files.
# * When deploying to dedicated servers, please use the external IP or domain of the API server.
API_BASE_URL: "http://localhost:8081"
# OIDC_ISSUER: ""
# OIDC_CLIENT_ID: ""
# OIDC_SCOPE: ""
# OIDC_FLOW: ""
# OIDC_LOGIN_BUTTON_TEXT: ""
# volumes:
# - "/host/path/to/config.json:/app/static/config.json"
ports:
- "8080:8080"
restart: unless-stopped
labels:
lagoon.type: basic
lagoon.service.port: 8080
postgres:
image: uselagoon/postgres-17:latest
labels:
lagoon.type: postgres
lando.type: postgres
ports:
- "5432" # exposes the port 5432 with a random local port, find it with `docker compose port postgres 5432`
# << : *default-user # uses the defined user from top
# environment:
# << : *default-environment
volumes:
- db:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U lagoon -d lagoon" ]
interval: 5s
timeout: 3s
retries: 3
volumes:
dtrack-data:
labels:
# this label is required to ensure the volume is created by Lagoon
lagoon.type: persistent
files: {}
db: {}