1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- version: '2.0'
- services:
- nginx:
- build:
- context: ./lims-frontend/
- dockerfile: ./Dockerfile
- ports:
- - 8002:8002
- networks:
- lims_net:
- ipv4_address: 172.26.0.13
- web:
- build: .
- command: python manage.py runserver 0.0.0.0:8003
- volumes:
- - .:/code
- ports:
- - 8003:8003
- depends_on:
- - db
- networks:
- lims_net:
- ipv4_address: 172.26.0.14
- 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/
- networks:
- lims_net:
- ipv4_address: 172.26.0.12
- networks:
- lims_net:
- ipam:
- config:
- - subnet: 172.26.0.0/16
- # volumes:
- # - ./db:/var/lib/mysql
- # - ./mysql/init:/docker-entrypoint-initdb.d/
- # depends_on:
- # - db_init
- # db_init:
- # command: --default-authentication-plugin=mysql_native_password
|