This commit is contained in:
2025-02-02 21:56:59 +03:00
parent a5398094da
commit 1d6af5204b
21 changed files with 172 additions and 439 deletions

View File

@@ -0,0 +1,20 @@
version: '3.9'
services:
db:
image: 'postgres:17.2-alpine3.21'
restart: always
environment:
POSTGRES_PASSWORD: 1234
networks:
- my_network
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- my_network
networks:
my_network:

View File

@@ -0,0 +1,6 @@
Server (Host): db (because Docker Compose creates an internal network and uses service names as hostnames)
Username: postgres (default PostgreSQL username)
Password: 1234 (as set in your POSTGRES_PASSWORD environment variable)
Database: Leave it empty or enter postgres (default database)

View File

@@ -0,0 +1,8 @@
#!/bin/bash -e
# Get the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"