feat(tooling): add a docker-compose.yml file for easy service start
+ 31
- 0
new file
docker-compose.yml
@@ -0,0 +1,31 @@
+version: "3"
+services:
+  db:
+    container_name: gitfoss_db
+    image: postgres:14
+    environment:
+      - POSTGRES_PASSWORD=change_me_password
+      - POSTGRES_DB=gitfoss
+    ports:
+      - 5432:5432
+  web:
+    build:
+      context: .
+      dockerfile: Dockerfile
+      args:
+        - HOST=0.0.0.0
+        - PORT=1337
+    container_name: gitfoss_web
+    depends_on:
+      - db
+    environment:
+      - COOKIE_NAME=gitfoss_ssid
+      - COOKIE_SECRET=gitfoss-local-cookie-secret
+      - DATABASE_URL=postgresql://postgres:change_me_password@gitfoss_db:5432/gitfoss?sslmode=disable&connection_limit=3
+      - DEPLOYMENT_DOMAIN=local-app.localhost
+      - DEPLOYMENT_SCHEME=http
+      - GIT_REPOSITORIES_ROOT=/opt/repos
+    ports:
+      - 1337:1337
+    volumes:
+      - /Users/admin/Dev/Labs/gitfoss-repos:/opt/repos