Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
650 B
5
Indexable
Never
version: "3.9"

networks:
  swsp-db-network:
    driver: bridge

services:
  mysql:
    container_name: mysql
    image: mysql:8.2
    environment:
      MYSQL_ROOT_PASSWORD: 1qazXSW@
      MYSQL_DATABASE: swsp-db
      MYSQL_USER: swsp-db
      MYSQL_PASSWORD: 1qazXSW@
    ports:
      - 3306:3306
    volumes:
      - mysql-data:/var/lib/mysql
    networks:
      - swsp-db-network

  phpmyadmin:
    container_name: php-my-admin
    image: phpmyadmin:5.2.1
    environment:
      PMA_HOST: mysql
      MYSQL_ROOT_PASSWORD: 1qazXSW@
    ports:
      - 8081:80
    depends_on:
      - mysql

volumes:
  mysql-data:
Leave a Comment