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