From e1a09f01a3e3731ffa51cd1ce3d4c7dbf2b58625 Mon Sep 17 00:00:00 2001 From: darius Date: Sat, 4 Jan 2025 13:10:14 +0100 Subject: [PATCH] moved env to --- docker-compose.yml | 34 ++++++++++++++++++---------------- go.mod | 1 - 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7d2ef95..809c0fe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,31 +1,33 @@ version: '3.8' services: - database: - container_name: darius-portfolio-database - image: postgres:alpine - restart: always - env_file: - - .env - ports: - - "5432:5432" - healthcheck: - test: [ "CMD-SHELL", "pg_isready -U postgres" ] - interval: 10s - timeout: 5s - retries: 5 +# database: +# container_name: darius-portfolio-database +# image: postgres:alpine +# restart: always +# env_file: +# - .env +# ports: +# - "5432:5432" +# healthcheck: +# test: [ "CMD-SHELL", "pg_isready -U postgres" ] +# interval: 10s +# timeout: 5s +# retries: 5 portfolio: container_name: darius-portfolio-server build: . + env_file: + - .env ports: - "4000:4000" - "4001:4001" restart: unless-stopped image: docker.dariusklein.nl/portfolio:latest - depends_on: - database: - condition: service_healthy +# depends_on: +# database: +# condition: service_healthy volumes: - ./backup:/web/assets/json diff --git a/go.mod b/go.mod index d49eab1..f501e2e 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,6 @@ require ( entgo.io/ent v0.13.1 github.com/delaneyj/gomponents-iconify v0.0.20231025 github.com/golang-jwt/jwt/v5 v5.2.1 - github.com/joho/godotenv v1.5.1 github.com/lib/pq v1.10.9 github.com/maragudk/gomponents v0.20.2 github.com/maragudk/gomponents-htmx v0.5.0