Created
April 12, 2021 10:44
-
-
Save deanet/e6e97cba937d692c5f22fe14e7922222 to your computer and use it in GitHub Desktop.
Revisions
-
deanet created this gist
Apr 12, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,44 @@ version: "3.5" ## SpeAc2021 services: dbmongo-dian-config: image: mongo:latest container_name: dbmongo-dian ports: - "27017:27017" volumes: - dbmongo-vol-config:/data/db networks: - dbmongo-net-config dbmysql-dian-config: image: mysql:5.7 container_name: dbmysql-dian environment: MYSQL_ROOT_PASSWORD: password ports: - "3306:3306" volumes: - dbmysql-vol-config:/var/lib/mysql networks: - dbmysql-net-config volumes: dbmongo-vol-config: name: "dbmongo-vol" dbmysql-vol-config: name: "dbmysql-vol" networks: dbmongo-net-config: name: "dbmongo-net" driver: bridge ipam: config: - subnet: 172.23.0.0/16 gateway: 172.23.0.1 dbmysql-net-config: name: "dbmysql-net" driver: bridge ipam: config: - subnet: 172.24.0.0/16 gateway: 172.24.0.1