commit ec46a0d80777b43c20ae58366050b5c65076ec00 Author: aetos Date: Sat Nov 29 10:34:41 2025 +0000 Add docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..c5a2ca4 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,27 @@ +services: + postgres: + image: postgres:16 + container_name: postgres + restart: unless-stopped + ports: + - "5432:5432" + env_file: + - .env + command: [ + "postgres", + "-c", "shared_preload_libraries=pg_stat_statements", + "-c", "pg_stat_statements.track=all" + ] + volumes: + - /home/aetos/postgres/data:/var/lib/postgresql/data + + pgadmin: + image: dpage/pgadmin4 + container_name: pgadmin4 + restart: unless-stopped + ports: + - "8002:80" + env_file: + - .env + volumes: + - /home/aetos/pgadmin/data:/var/lib/pgadmin \ No newline at end of file