Skip to content

Commit 470465c

Browse files
committed
feat: Working docker compose
1 parent 3b0c05e commit 470465c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

docker-compose.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,14 @@ services:
2121
networks:
2222
- domain_locker_network
2323

24-
healthcheck:
25-
test: ["CMD-SHELL", "pg_isready -U ${DL_PG_USER}"]
26-
interval: 10s
27-
timeout: 5s
28-
retries: 5
29-
3024
app:
3125
image: lissy93/domain-locker:latest # or ghcr.io/lissy93/domain-locker:latest
3226
container_name: domain-locker-app
3327
restart: unless-stopped
3428
# Environmental variables for database connection and other config
3529
environment:
3630
DL_ENV_TYPE: ${DL_ENV_TYPE:-selfHosted}
37-
DL_PG_HOST: ${DL_PG_HOST:-localhost}
31+
DL_PG_HOST: ${DL_PG_HOST:-postgres}
3832
DL_PG_PORT: ${DL_PG_PORT:-5432}
3933
DL_PG_USER: ${DL_PG_USER:-postgres}
4034
DL_PG_PASSWORD: ${DL_PG_PASSWORD:-changeme2420}
@@ -45,10 +39,6 @@ services:
4539
# Connection to the Postgres container
4640
networks:
4741
- domain_locker_network
48-
# To wait until Postgres is up and running
49-
depends_on:
50-
postgres:
51-
condition: service_healthy
5242

5343
volumes:
5444
postgres_data:

0 commit comments

Comments
 (0)