Restore original PostgreSQL content
This commit is contained in:
parent
74fc73e7bf
commit
a7f38fa3e6
@ -1,25 +1,30 @@
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.0
|
||||
container_name: mysql-db
|
||||
postgres:
|
||||
image: postgres:16
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: rootpassword123
|
||||
MYSQL_DATABASE: myapp
|
||||
MYSQL_USER: appuser
|
||||
MYSQL_PASSWORD: apppassword123
|
||||
ports:
|
||||
- "3306:3306"
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: your_secure_password_here
|
||||
POSTGRES_DB: myapp
|
||||
PGDATA: /var/lib/postgresql/data/pgdata
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
- ./mysql-init:/docker-entrypoint-initdb.d
|
||||
networks:
|
||||
- mysql-network
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4:latest
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: admin@example.com
|
||||
PGADMIN_DEFAULT_PASSWORD: admin_password_here
|
||||
volumes:
|
||||
- pgadmin_data:/var/lib/pgadmin
|
||||
ports:
|
||||
- "8080:80"
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
|
||||
networks:
|
||||
mysql-network:
|
||||
driver: bridge
|
||||
postgres_data:
|
||||
pgadmin_data:
|
||||
|
Loading…
Reference in New Issue
Block a user