diff options
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..4cf35c9 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,20 @@ +services: + postgres: + image: postgres:16 + container_name: tidyindex-postgres + environment: + POSTGRES_USER: tidyindex + POSTGRES_PASSWORD: tidyindex + POSTGRES_DB: tidyindex + ports: + - "35434:5432" + volumes: + - tidyindex-pgdata:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U tidyindex -d tidyindex"] + interval: 5s + timeout: 5s + retries: 5 + +volumes: + tidyindex-pgdata: |
