Last active
June 14, 2018 04:30
-
-
Save richardsonlima/88c8729750bfac6ca89ca9627d461a23 to your computer and use it in GitHub Desktop.
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 characters
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