Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save richardsonlima/88c8729750bfac6ca89ca9627d461a23 to your computer and use it in GitHub Desktop.
Save richardsonlima/88c8729750bfac6ca89ca9627d461a23 to your computer and use it in GitHub Desktop.
version: '2'
services:
mysql:
container_name: mysql
image: mysql:latest
restart: always
environment:
- MYSQL_ROOT_PASSWORD=PASSWORD-HERE
ports:
- "3306:3306"
networks:
vpcbr:
ipv4_address: 10.5.0.5
apigw-tomcat:
container_name: apigw-tomcat
build: tomcat/.
ports:
- "8080:8080"
- "8009:8009"
networks:
vpcbr:
ipv4_address: 10.5.0.6
depends_on:
- mysql
networks:
vpcbr:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment