1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| name: yidada services: mysql: container_name: mysql image: mysql:8.0 ports: - "3306:3306" environment: MYSQL_ROOT_PASSWORD: Lxc592122. MYSQL_DATABASE: jindada volumes: - mysql-data:/var/lib/mysql - /root/yidada/myconf:/etc/mysql/conf.d restart: always networks: - yidada
nginx: container_name: nginx image: nginx ports: - "8080:80" volumes: - /root/yidada/nginx/conf/nginx.conf:/etc/nginx/nginx.conf - /root/yidada/nginx/log:/var/log/nginx - /root/yidada/nginx/www:/usr/share/nginx/html restart: always networks: - yidada privileged: true
yidada: container_name: yidada image: yidada:v1.0 ports: - "8101:8101" depends_on: - mysql
volumes: mysql-data: yidada: nginx: ngconf: networks: yidada:
|