| | |
| | | - /opt/jenkins/jenkins_home:/var/jenkins_home |
| | | - /var/run/docker.sock:/var/run/docker.sock |
| | | - /usr/bin/docker:/usr/bin/docker |
| | | - /opt/apache-maven-3.6.1/:/opt/apache-maven-3.6.1 |
| | | - /opt/apache-maven-3.6.1/:/opt/apache-maven-3.6.1 |
| | | mysql: |
| | | image: mysql:8.0 |
| | | restart: always |
| | | container_name: mysql80 |
| | | volumes: |
| | | - /opt/mysql/data:/var/lib/mysql |
| | | - /opt/mysql/logs:/logs |
| | | - /opt/mysql/conf:/etc/mysql/conf.d |
| | | ports: |
| | | - '10011:3306' |
| | | command: [ |
| | | 'mysqld', |
| | | '--innodb-buffer-pool-size=80M', |
| | | '--character-set-server=utf8mb4', |
| | | '--collation-server=utf8mb4_unicode_ci', |
| | | '--default-time-zone=+8:00', |
| | | '--lower-case-table-names=1' |
| | | ] |
| | | environment: |
| | | TZ: Asia/Shanghai |
| | | MYSQL_ROOT_PASSWORD: 'kuanzhaiyx' |
| | | nginx: |
| | | image: nginx |
| | | container_name: nginx |
| | | restart: always |
| | | ports: |
| | | - '80:80' |
| | | - '443:443' |
| | | volumes: |
| | | - /opt/nginx/conf.d:/etc/nginx/conf.d |
| | | - /opt/nginx/log:/var/log/nginx |
| | | - /opt/nginx/html:/html |