Sign inSign up

jeffreyalanwang/dutch-railways:0.0.1

Manifest digest

sha256:22727ce2b5bef7f7173d8900d7d9d6c11ab29239ac17076a8d6aab0d43a0f5fe

Last pushed

7 days by jeffreyalanwang

Type

Compose

Manifest digest

sha256:22727ce2b5bef7f7173d8900d7d9d6c11ab29239ac17076a8d6aab0d43a0f5fe

Compose file content

name: dutch-railways-server

services:
  server:
    image: jeffreyalanwang/dutch-railways-server:latest
    ports:
      - "80:80"
    environment:
      SERVER_PORT: 80
      DB_HOST: db
      DB_PORT: 5432
      DB_NAME: dutch_railways
      DB_USER: ${DB_USER:-postgres}
      DB_PASSWORD: ${DB_PASSWORD:-postgres}
      THC_PATH: /actuator/health
      THC_PORT: 8081
      ACTUATOR_PORT: 8081
    depends_on:
      db:
        condition: service_healthy
    healthcheck:
      test: ["CMD", "/workspace/health-check"]
      start_period: 2m

  db:
    image: jeffreyalanwang/dutch-railways-database:latest
    pull_policy: always
    environment:
      POSTGRES_USER: ${DB_USER:-postgres}
      POSTGRES_PASS: ${DB_PASSWORD:-postgres}
      POSTGRES_DB: dutch_railways
    expose:
      - "5432"
    volumes:
      - db_data:/var/lib/postgresql/
    healthcheck:
      test: ["CMD", "test", "-f", "/tmp/postgres-ready"]
      start_period: 5m

volumes:
  db_data:

Docker commands

docker compose -f oci://jeffreyalanwang/dutch-railways:0.0.1 up

Use the above command to pull and run the Compose file. Learn more⁠.

Images used

Image


Pulls

1.6K

Stars

0

Last Updated

7 days

Image


Pulls

502

Stars

0

Last Updated

5 days