Domain Locker #7344
wdhdev
started this conversation in
Service Template Requests
Domain Locker
#7344
Replies: 1 comment
-
|
Here is a docker compose.yml - i edited the one you provided. version: '3.8'
services:
postgres:
image: 'postgres:15-alpine'
container_name: domain-locker-postgres
restart: unless-stopped
environment:
POSTGRES_DB: '${POSTGRES_DB:-domain_locker}'
POSTGRES_USER: '${SERVICE_USER_POSTGRES}'
POSTGRES_PASSWORD: '${SERVICE_PASSWORD_POSTGRES}'
volumes:
- 'domain-locker-postgres-data:/var/lib/postgresql/data'
networks:
- domain_locker_network
healthcheck:
test:
- CMD-SHELL
- 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
interval: 5s
timeout: 20s
retries: 10
app:
image: 'lissy93/domain-locker:latest'
container_name: domain-locker-app
restart: unless-stopped
environment:
DL_ENV_TYPE: '${DL_ENV_TYPE:-selfHosted}'
DL_PG_HOST: domain-locker-postgres
DL_PG_PORT: 5432
DL_PG_USER: '${SERVICE_USER_POSTGRES}'
DL_PG_PASSWORD: '${SERVICE_PASSWORD_POSTGRES}'
DL_PG_NAME: '${POSTGRES_DB:-domain_locker}'
SERVICE_FQDN_9999: null
ports:
- '9999:9999'
depends_on:
postgres:
condition: service_healthy
networks:
- domain_locker_network
labels:
- 'traefik.http.routers.domain-locker.rule=Host(`${SERVICE_FQDN_9999}`)'
- traefik.http.routers.domain-locker.entrypoints=http
- traefik.http.services.domain-locker.loadbalancer.server.port=9999
healthcheck:
test:
- CMD
- wget
- '-q'
- '--spider'
- 'http://127.0.0.1:9999'
interval: 5s
timeout: 20s
retries: 10
updater:
image: 'alpine:3.20'
container_name: domain-locker-updater
restart: unless-stopped
depends_on:
app:
condition: service_healthy
networks:
- domain_locker_network
command: "/bin/sh -c \"\n apk add --no-cache curl &&\n echo '0 3 * * * /usr/bin/curl -s -X POST http://domain-locker-app:9999/api/domain-updater' > /etc/crontabs/root &&\n echo '0 4 * * * /usr/bin/curl -s -X POST http://domain-locker-app:9999/api/expiration-reminders' >> /etc/crontabs/root &&\n crond -f -L /dev/stdout\n\"\n"
volumes:
domain-locker-postgres-data: null
networks:
domain_locker_network:
driver: bridge |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice if we could easily install Domain Locker using a template.
They have a Docker compose config here: https://domain-locker.com/about/self-hosting/deploying-with-docker-compose
https://github.com/lissy93/domain-locker
Beta Was this translation helpful? Give feedback.
All reactions