From d9db3e5e213a2decf8dbc816c2f8fa3099031600 Mon Sep 17 00:00:00 2001 From: Ahoorast Date: Sun, 24 May 2026 15:47:46 +0330 Subject: [PATCH] chore: add docker compose file --- docker-compose.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7885d99 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,35 @@ +version: "3.8" + +services: + postgres: + image: hub.hamdocker.ir/timescale/timescaledb:2.15.1-pg16 + container_name: postgres + restart: unless-stopped + + environment: + POSTGRES_DB: app_db + POSTGRES_USER: app_user + POSTGRES_PASSWORD: strong_password + + ports: + - "5469:5432" + + volumes: + - postgres_data:/var/lib/postgresql/data + + command: > + postgres + -c shared_preload_libraries=timescaledb + + pgadmin: + image: hub.hamdocker.ir/dpage/pgadmin4 + environment: + PGADMIN_DEFAULT_EMAIL: admin@example.com + PGADMIN_DEFAULT_PASSWORD: admin + ports: + - "5050:80" + + +volumes: + postgres_data: +