moved env to

This commit is contained in:
darius 2025-01-04 13:10:14 +01:00
parent 77231c969b
commit e1a09f01a3
2 changed files with 18 additions and 17 deletions

View File

@ -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

1
go.mod
View File

@ -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