diff --git a/config/secrets/postgres_db b/config/secrets/postgres_db deleted file mode 100644 index cdc4e3a..0000000 --- a/config/secrets/postgres_db +++ /dev/null @@ -1 +0,0 @@ -cexplorer \ No newline at end of file diff --git a/config/secrets/postgres_password b/config/secrets/postgres_password deleted file mode 100644 index c616260..0000000 --- a/config/secrets/postgres_password +++ /dev/null @@ -1 +0,0 @@ -changeme \ No newline at end of file diff --git a/config/secrets/postgres_user b/config/secrets/postgres_user deleted file mode 100644 index 7d72bd7..0000000 --- a/config/secrets/postgres_user +++ /dev/null @@ -1 +0,0 @@ -postgres \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 1e2c59a..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,95 +0,0 @@ -version: "3.9" - -services: - postgres: - image: postgres:15.3-alpine3.18 - environment: - - POSTGRES_LOGGING=true - - POSTGRES_DB_FILE=/run/secrets/postgres_db - - POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password - - POSTGRES_USER_FILE=/run/secrets/postgres_user - secrets: - - postgres_password - - postgres_user - - postgres_db - ports: - - ${POSTGRES_PORT:-5432}:5432 - volumes: - - postgres:/var/lib/postgresql/data - restart: on-failure - healthcheck: - # Use pg_isready to check postgres is running. Substitute different - # user `postgres` if you've setup differently to config/pgpass-mainnet - test: ["CMD-SHELL", "pg_isready -U postgres"] - interval: 10s - timeout: 5s - retries: 5 - command: ${POSTGRES_ARGS:--c maintenance_work_mem=1GB -c max_parallel_maintenance_workers=4} - logging: - driver: "json-file" - options: - max-size: "200k" - max-file: "10" - - cardano-node: - image: ghcr.io/blinklabs-io/cardano-node:latest - environment: - - NETWORK=${NETWORK:-preview} - volumes: - - node-data:/opt/cardano/data - - node-ipc:/ipc - restart: on-failure - healthcheck: - test: ["CMD-SHELL", "curl -f 127.0.0.1:12798/metrics || exit 1"] - interval: 60s - timeout: 10s - retries: 5 - logging: - driver: "json-file" - options: - max-size: "200k" - max-file: "10" - - cardano-db-sync: - image: blinklabs/cardano-db-sync:13.1.0.2 - environment: - - DISABLE_LEDGER=${DISABLE_LEDGER} - - NETWORK=${NETWORK:-preview} - - POSTGRES_HOST=postgres - - POSTGRES_PORT=5432 - - RESTORE_SNAPSHOT=${RESTORE_SNAPSHOT:-} - - RESTORE_RECREATE_DB=N - - EXTRA_DB_SYNC_ARGS=${EXTRA_DB_SYNC_ARGS:-} - depends_on: - # Depend on both services to be healthy before starting. - cardano-node: - condition: service_healthy - postgres: - condition: service_healthy - secrets: - - postgres_password - - postgres_user - - postgres_db - volumes: - - db-sync-data:/var/lib/cexplorer - - node-ipc:/node-ipc - restart: on-failure - logging: - driver: "json-file" - options: - max-size: "200k" - max-file: "10" - -secrets: - postgres_db: - file: ./config/secrets/postgres_db - postgres_password: - file: ./config/secrets/postgres_password - postgres_user: - file: ./config/secrets/postgres_user - -volumes: - db-sync-data: - postgres: - node-data: - node-ipc: \ No newline at end of file