mirror of
https://github.com/moul/sshportal.git
synced 2025-09-05 04:04:45 +08:00
update mysql example using ENV
This commit is contained in:
parent
23a89fe1de
commit
6f4fb24cd0
1 changed files with 5 additions and 1 deletions
|
@ -4,12 +4,16 @@ services:
|
|||
sshportal:
|
||||
build: ../..
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
SSHPORTAL_DB_DRIVER: mysql
|
||||
SSHPORTAL_DATABASE_URL: "root:root@tcp(mysql:3306)/db?charset=utf8&parseTime=true&loc=Local"
|
||||
SSHPORTAL_DEBUG: 1
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
links:
|
||||
- mysql
|
||||
command: server --db-driver=mysql --debug --db-conn="root:root@tcp(mysql:3306)/db?charset=utf8&parseTime=true&loc=Local"
|
||||
command: server
|
||||
ports:
|
||||
- 2222:2222
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue