Skip to content

Instantly share code, notes, and snippets.

@sagar290
Created November 24, 2023 13:41
Show Gist options
  • Save sagar290/7a10c9ce8177669ad41e506a9db2f8f4 to your computer and use it in GitHub Desktop.
Save sagar290/7a10c9ce8177669ad41e506a9db2f8f4 to your computer and use it in GitHub Desktop.
mysql, schema_design, db_postgres
version: '3.1'
services:
db_mysql:
image: mysql
command:
- --default-authentication-plugin=caching_sha2_password
restart: always
environment:
MYSQL_USER: sagar
MYSQL_PASSWORD: 1234
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
ports:
- '3306:3306'
volumes:
- ./mysql_data:/var/lib/mysql
db_schema_design:
image: denlabo/sqldesigner
restart: always
ports:
- '8081:80'
db_postgres:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: root
ports:
- '5432:5432'
volumes:
- ./postgres_data:/var/lib/postgresql/data
volumes:
mysql_data:
postgres_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment