Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2.1'
- services:
- wichita-frontend:
- build: wichita-api-dashboard-frontend # specify the directory of the Dockerfile
- ports:
- - "8080:80"
- wichita-api:
- build: wichita-api-dashboard # specify the directory of the Dockerfile
- depends_on:
- - db
- environment:
- PORT: 3000
- AWS_ACCESS_KEY_ID: [PUT SECRET KEY ID HERE]
- AWS_SECRET_ACCESS_KEY: [PUT SECRET ACCESS KEY HERE]
- DB_HOST: db
- DB_USER: root
- DB_PASS: root
- DB_PORT: 3306
- ports:
- - "3000:3000"
- command: ["./wait-for-mysql.sh", "db"] # this will make the api server wait until mysql is up to start the node process
- db:
- image: mysql
- command: --default-authentication-plugin=mysql_native_password
- restart: always
- ports:
- - "3307:3306"
- environment:
- MYSQL_ROOT_PASSWORD: root # if you change this, make sure you cange it on line 19 as well
- MYSQL_DATABASE: wichita_dev
Add Comment
Please, Sign In to add comment