version: '3.9' networks: mysql_net: services: db: image: mysql:5.7 command: --default-authentication-plugin=mysql_native_password volumes: - db_data:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: 123 MYSQL_DATABASE: test MYSQL_USER: user MYSQL_PASSWORD: 123 ports: - 3306:3306 networks: - mysql_net change_db: image: python:3 build: context: ./tick dockerfile: Dockerfile ports: - 8000:8000 networks: - mysql_net backup_db: image: python:3 build: context: ./backup dockerfile: Dockerfile ports: - 8001:8001 networks: - mysql_net volumes: db_data: {}
Обсуждают сегодня