Skip to content

Commit

Permalink
✨ feat(master): 增加docker-compose 部署
Browse files Browse the repository at this point in the history
增加docker-compose.yml

Signed-off-by: Asura <[email protected]>
  • Loading branch information
luodaoyi committed Jun 6, 2018
1 parent bc7337e commit 9b960c7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
!Dockerfile
!gulpfile.js
!package.json
!docker-compose.yml

src/main/webapp/skins/*
!src/main/webapp/skins/mobile
Expand Down
39 changes: 39 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: '3.1'

services:

web:
image: luodaoyi/solo
restart: always
ports:
- 8080:8080
depends_on:
- db
environment:
DATABASE_TYPE: mysql
DATABASE_HOST: db
DATABASE_NAME: solo
DATABASE_USERNAME: solo
DATABASE_PASSWORD: solo
SERVER_SCHMEA: https
SERVER_NAME: <your host>
SERVER_PORT: 80
EMAIL_ADDRESS: <your address>
EMAIL_PASSWORD: <your smtp password>
SMTP_HOST: <your smtp host>
SMTP_PROT: <your smtp port>


db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: somesolo
MYSQL_DATABASE: solo
MYSQL_USER: solo
MYSQL_PASSWORD: solo
volumes:
- mysql-data:/var/lib/mysql

volumes:
mysql-data:

0 comments on commit 9b960c7

Please sign in to comment.