Skip to content

Instantly share code, notes, and snippets.

@deanet
Created April 12, 2021 10:44
Show Gist options
  • Save deanet/e6e97cba937d692c5f22fe14e7922222 to your computer and use it in GitHub Desktop.
Save deanet/e6e97cba937d692c5f22fe14e7922222 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment