2XL / qianlispace.com

QianLi Space Website
0 stars 0 forks source link

Day: 22 July 2019 #43

Open 2XL opened 5 years ago

2XL commented 5 years ago

Motivation:

Setup local dev environment

Learning new tools:

Results for today

      • nginx:latest
      • mysql:latest
      • php:latest site exposed through port 80
      • php:latest site exposed through port 8080

hint: (this is not a valid manifest, may require small fixes)


# docker-compose.yml
version
services
 nginx
  image: nginx
 backend:
  image: php
  port: 80
 frontend:
  image: php
  port: 8080
 database:
  image: mysql
  port: 3306
2XL commented 5 years ago

Additianal learning

docker-compose start database

there is a demo database dump shared through dropbox/qianli/db directory *.sql