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