changes to deploy dev server

This commit is contained in:
2025-07-09 15:33:45 -05:00
parent 04f2a48727
commit 60faa0a123
4 changed files with 134 additions and 123 deletions

View File

@@ -1,23 +1,23 @@
networks:
supabase-network:
name: supabase-network
techtracker-dev:
name: techtracker-dev
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
- subnet: 172.21.0.0/16
services:
studio:
build:
context: .
dockerfile: studio/Dockerfile
target: dev
networks: [supabase-network]
networks: [techtracker-dev]
ports:
- 8082:8082
mail:
container_name: supabase-mail
container_name: ttsbd-supabase-mail
image: inbucket/inbucket:3.0.3
networks: [supabase-network]
networks: [techtracker-dev]
ports:
- '2500:2500' # SMTP
- '9000:9000' # web interface

View File

@@ -1,15 +1,16 @@
networks:
supabase-network:
name: supabase-network
techtracker-dev:
name: techtracker-dev
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
- subnet: 172.21.0.0/16
services:
minio:
image: minio/minio
networks: [supabase-network]
container_name: ttsbd-supabase-minio
networks: [techtracker-dev]
ports:
- '9000:9000'
- '9001:9001'
@@ -27,7 +28,8 @@ services:
minio-createbucket:
image: minio/mc
networks: [supabase-network]
container_name: ttsbd-supabase-minio-createbucket
networks: [techtracker-dev]
depends_on:
minio:
condition: service_healthy
@@ -39,9 +41,9 @@ services:
"
storage:
container_name: supabase-storage
container_name: ttsbd-supabase-storage
image: supabase/storage-api:v1.11.13
networks: [supabase-network]
networks: [techtracker-dev]
depends_on:
db:
# Disable this if you are using an external Postgres database
@@ -91,9 +93,9 @@ services:
- ./volumes/storage:/var/lib/storage:z
imgproxy:
container_name: supabase-imgproxy
container_name: ttsbd-supabase-imgproxy
image: darthsim/imgproxy:v3.8.0
networks: [supabase-network]
networks: [techtracker-dev]
healthcheck:
test: [ "CMD", "imgproxy", "health" ]
timeout: 5s

View File

@@ -5,22 +5,22 @@
# Destroy: docker compose -f docker-compose.yml -f ./dev/docker-compose.dev.yml down -v --remove-orphans
# Reset everything: ./reset.sh
name: techtracker
name: techtracker-dev
networks:
techtracker:
name: techtracker
techtracker-dev:
name: techtracker-dev
driver: bridge
ipam:
config:
- subnet: 172.19.0.0/16
- subnet: 172.21.0.0/16
services:
studio:
container_name: supabase-studio
container_name: ttsbd-supabase-studio
image: supabase/studio:2025.05.19-sha-3487831
networks: [techtracker]
networks: [techtracker-dev]
restart: unless-stopped
healthcheck:
test:
@@ -59,9 +59,9 @@ services:
# NEXT_ANALYTICS_BACKEND_PROVIDER: bigquery
kong:
container_name: supabase-kong
container_name: ttsbd-supabase-kong
image: kong:2.8.1
networks: [techtracker]
networks: [techtracker-dev]
restart: unless-stopped
ports:
- ${KONG_HTTP_PORT}:8000/tcp
@@ -88,9 +88,9 @@ services:
entrypoint: bash -c 'eval "echo \"$$(cat ~/temp.yml)\"" > ~/kong.yml && /docker-entrypoint.sh kong docker-start'
auth:
container_name: supabase-auth
container_name: ttsbd-supabase-auth
image: supabase/gotrue:v2.172.1
networks: [techtracker]
networks: [techtracker-dev]
restart: unless-stopped
healthcheck:
test:
@@ -197,9 +197,9 @@ services:
# GOTRUE_HOOK_SEND_EMAIL_SECRETS: "v1,whsec_VGhpcyBpcyBhbiBleGFtcGxlIG9mIGEgc2hvcnRlciBCYXNlNjQgc3RyaW5n"
rest:
container_name: supabase-rest
container_name: ttsbd-supabase-rest
image: postgrest/postgrest:v12.2.12
networks: [techtracker]
networks: [techtracker-dev]
restart: unless-stopped
depends_on:
db:
@@ -222,9 +222,9 @@ services:
realtime:
# This container name looks inconsistent but is correct because realtime constructs tenant id by parsing the subdomain
container_name: realtime-dev.supabase-realtime
container_name: ttsbd-realtime-dev.supabase-realtime
image: supabase/realtime:v2.34.47
networks: [techtracker]
networks: [techtracker-dev]
restart: unless-stopped
depends_on:
db:
@@ -268,9 +268,9 @@ services:
# To use S3 backed storage: docker compose -f docker-compose.yml -f docker-compose.s3.yml up
storage:
container_name: supabase-storage
container_name: ttsbd-supabase-storage
image: supabase/storage-api:v1.22.17
networks: [techtracker]
networks: [techtracker-dev]
restart: unless-stopped
volumes:
- ./volumes/storage:/var/lib/storage:z
@@ -312,9 +312,9 @@ services:
IMGPROXY_URL: http://imgproxy:5001
imgproxy:
container_name: supabase-imgproxy
container_name: ttsbd-supabase-imgproxy
image: darthsim/imgproxy:v3.8.0
networks: [techtracker]
networks: [techtracker-dev]
restart: unless-stopped
volumes:
- ./volumes/storage:/var/lib/storage:z
@@ -335,9 +335,9 @@ services:
IMGPROXY_ENABLE_WEBP_DETECTION: ${IMGPROXY_ENABLE_WEBP_DETECTION}
meta:
container_name: supabase-meta
container_name: ttsbd-supabase-meta
image: supabase/postgres-meta:v0.89.0
networks: [techtracker]
networks: [techtracker-dev]
restart: unless-stopped
depends_on:
db:
@@ -354,9 +354,9 @@ services:
PG_META_DB_PASSWORD: ${POSTGRES_PASSWORD}
functions:
container_name: supabase-edge-functions
container_name: ttsbd-supabase-edge-functions
image: supabase/edge-runtime:v1.67.4
networks: [techtracker]
networks: [techtracker-dev]
restart: unless-stopped
volumes:
- ./volumes/functions:/home/deno/functions:Z
@@ -379,12 +379,12 @@ services:
]
analytics:
container_name: supabase-analytics
container_name: ttsbd-supabase-analytics
image: supabase/logflare:1.12.0
networks: [techtracker]
networks: [techtracker-dev]
restart: unless-stopped
ports:
- 4000:4000
#ports:
#- 4000:4000
# Uncomment to use Big Query backend for analytics
# volumes:
# - type: bind
@@ -428,9 +428,9 @@ services:
# Comment out everything below this point if you are using an external Postgres database
db:
container_name: supabase-db
container_name: ttsbd-supabase-db
image: supabase/postgres:15.8.1.060
networks: [techtracker]
networks: [techtracker-dev]
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
restart: unless-stopped
@@ -490,9 +490,9 @@ services:
]
vector:
container_name: supabase-vector
container_name: ttsbd-supabase-vector
image: timberio/vector:0.28.1-alpine
networks: [techtracker]
networks: [techtracker-dev]
restart: unless-stopped
volumes:
- ./volumes/logs/vector.yml:/etc/vector/vector.yml:ro,z
@@ -522,9 +522,9 @@ services:
# Update the DATABASE_URL if you are using an external Postgres database
supavisor:
container_name: supabase-pooler
container_name: ttsbd-supabase-pooler
image: supabase/supavisor:2.5.1
networks: [techtracker]
networks: [techtracker-dev]
restart: unless-stopped
ports:
#- ${POSTGRES_PORT}:5432
@@ -576,4 +576,4 @@ services:
volumes:
db-config:
name: techtracker-config
name: techtracker-dev-config