github.com/wangyougui/gf/v2@v2.6.5/.github/workflows/apollo/docker-compose.yml (about) 1 version: '2' 2 3 services: 4 apollo-quick-start: 5 image: "loads/apollo-quick-start:latest" 6 container_name: apollo-quick-start 7 depends_on: 8 - apollo-db 9 ports: 10 - "8080:8080" 11 - "8070:8070" 12 - "8060:8060" 13 links: 14 - apollo-db 15 #environment: 16 #JAVA_OPTS: '-Xms100m -Xmx1000m -Xmn100m -Xss256k -XX:MetaspaceSize=10m -XX:MaxMetaspaceSize=250m' 17 #APOLLO_CONFIG_DB_USERNAME: 'root' 18 #APOLLO_CONFIG_DB_PASSWORD: 'apollo' 19 #APOLLO_PORTAL_DB_USERNAME: 'root' 20 #APOLLO_PORTAL_DB_PASSWORD: 'apollo' 21 22 apollo-db: 23 image: "loads/mysql:5.7" 24 container_name: apollo-db 25 environment: 26 TZ: Asia/Shanghai 27 MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' 28 #MYSQL_ROOT_PASSWORD: 'apollo' 29 depends_on: 30 - apollo-dbdata 31 ports: 32 - "13306:3306" 33 volumes: 34 - ./sql:/docker-entrypoint-initdb.d 35 volumes_from: 36 - apollo-dbdata 37 38 apollo-dbdata: 39 image: "loads/alpine:3.8" 40 container_name: apollo-dbdata 41 volumes: 42 - /var/lib/mysql