mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-08-31 23:36:55 +00:00
chore: add profiles to docker compose
Allows us to spin up groups from the compose file Signed-off-by: Trezy <tre@trezy.com>
This commit is contained in:
+5
-2
@@ -1,5 +1,6 @@
|
||||
services:
|
||||
app:
|
||||
profiles: [prod]
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
@@ -16,6 +17,7 @@ services:
|
||||
- db
|
||||
|
||||
frontend:
|
||||
profiles: [prod]
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
@@ -37,6 +39,7 @@ services:
|
||||
- postgres_data:/var/lib/postgresql
|
||||
|
||||
prometheus:
|
||||
profiles: [prod]
|
||||
image: prom/prometheus:v3.8.0
|
||||
ports:
|
||||
- "9090:9090"
|
||||
@@ -44,8 +47,8 @@ services:
|
||||
- ./observability/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
|
||||
- prometheus_data:/prometheus
|
||||
command:
|
||||
- '--config.file=/etc/prometheus/prometheus.yaml'
|
||||
- '--storage.tsdb.path=/prometheus'
|
||||
- "--config.file=/etc/prometheus/prometheus.yaml"
|
||||
- "--storage.tsdb.path=/prometheus"
|
||||
depends_on:
|
||||
- app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user