summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-09-06 16:29:40 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-09-06 16:29:40 +0200
commitb8b0f661e6857731215798c6759e0ade9b3099f6 (patch)
treef5b887aec46e5521f90da61d98267d2170daebc6
parentff68c8cd24baef66ebb038d237b8f501c84edde5 (diff)
Fix scripts and add compose
-rw-r--r--docker-compose.yml37
-rwxr-xr-xscripts/k8s (renamed from scripts/k8s.yaml)0
-rwxr-xr-xscripts/release (renamed from scripts/release.sh)0
3 files changed, 37 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..163890c
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,37 @@
+version: "3"
+services:
+ postgres:
+ image: postgis/postgis:16-3.4
+ container_name: postgis
+ environment:
+ - POSTGRES_USER=postgres
+ - POSTGRES_PASSWORD=password
+ - POSTGRES_DB=gis
+ ports:
+ - "5433:5432"
+ volumes:
+ - pgdata:/var/lib/postgresql/data
+ - ./schema:/docker-entrypoint-initdb.d
+ networks:
+ - default
+
+ cas:
+ image: ghcr.io/cas-4/backend:latest
+ container_name: cas
+ networks:
+ - default
+
+ environment:
+ - RUST_LOG=${RUST_LOG}
+ - DATABASE_URL=${DATABASE_URL}
+ - JWT_SECRET=${JWT_SECRET}
+ - ALLOWED_HOST=${ALLOWED_HOST}
+ - EXPO_ACCESS_TOKEN=${EXPO_ACCESS_TOKEN}
+
+ depends_on:
+ - postgres
+ ports:
+ - "8000:8000"
+ restart: unless-stopped
+volumes:
+ pgdata:
diff --git a/scripts/k8s.yaml b/scripts/k8s
index 350a19a..350a19a 100755
--- a/scripts/k8s.yaml
+++ b/scripts/k8s
diff --git a/scripts/release.sh b/scripts/release
index 9c513f4..9c513f4 100755
--- a/scripts/release.sh
+++ b/scripts/release