Created
May 19, 2020 05:03
-
-
Save ziggahunhow/2ccb43eb1d4b767a2336341b9cbebc7b to your computer and use it in GitHub Desktop.
DefiMint Docker Compose
This file contains 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: "3.7" | |
services: | |
web: | |
build: ./client | |
ports: | |
- "3100:3000" | |
server: | |
build: | |
context: ./backend | |
args: | |
env: docker | |
ports: | |
- "3101:3002" | |
depends_on: | |
- mysql | |
contracts: | |
build: ./smartContract | |
ports: | |
- "8545:7545" | |
mysql: | |
image: "mysql:5.7.15" | |
restart: "always" | |
ports: | |
- "3307:3306" | |
expose: | |
# Opens port 3306 on the container | |
- "3307" | |
environment: | |
MYSQL_DATABASE: "DefiMint" | |
MYSQL_PASSWORD: "1234" | |
MYSQL_ROOT_PASSWORD: "1234" | |
healthcheck: | |
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] # this is not precise, use as last resort | |
timeout: 20s | |
retries: 15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment