| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- version: '2.0'
- services:
- nginx:
- build:
- context: ./lims-frontend/
- dockerfile: ./Dockerfile
- ports:
- - 8002:8002
- web:
- build: .
- command: python manage.py runserver 0.0.0.0:8003
- volumes:
- - .:/code
- ports:
- - 8003:8003
- depends_on:
- - db
- db:
- image: mysql:8.0.26
- restart: always
- #command: --default-authentication-plugin=mysql_native_password && --innodb_use_native_aio=0
- command: --innodb_use_native_aio=0
- environment:
- - MYSQL_HOST=0.0.0.0
- - MYSQL_PORT=3306
- - MYSQL_DATABASE=TestLaboratory
- - MYSQL_ROOT_PASSWORD=liufan3344
- ports:
- - 33061:3306
- volumes:
- # - data:/var/lib/mysql
- - ./mysql-init:/docker-entrypoint-initdb.d/
- # volumes:
- # - ./db:/var/lib/mysql
- # - ./mysql/init:/docker-entrypoint-initdb.d/
- # depends_on:
- # - db_init
- # db_init:
- # command: --default-authentication-plugin=mysql_native_password
|