Add docker-compose.yaml

This commit is contained in:
2025-11-29 10:34:41 +00:00
commit ec46a0d807

27
docker-compose.yaml Normal file
View File

@@ -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