fix: mysql change
This commit is contained in:
parent
b2a81eb1c9
commit
631840277d
1 changed files with 6 additions and 4 deletions
|
@ -4,9 +4,8 @@ version: '2.2'
|
||||||
services:
|
services:
|
||||||
snipeit:
|
snipeit:
|
||||||
image: snipe/snipe-it
|
image: snipe/snipe-it
|
||||||
links:
|
|
||||||
- snipeit-db:mysql
|
|
||||||
environment:
|
environment:
|
||||||
|
MYSQL_PORT_3306_TCP_ADDR: "snipeit-db"
|
||||||
MYSQL_ROOT_PASSWORD: "root"
|
MYSQL_ROOT_PASSWORD: "root"
|
||||||
MYSQL_DATABASE: "snipeit"
|
MYSQL_DATABASE: "snipeit"
|
||||||
MYSQL_USER: "snipeit"
|
MYSQL_USER: "snipeit"
|
||||||
|
@ -24,6 +23,7 @@ services:
|
||||||
- /srv/snipeit/data:/var/lib/snipeit
|
- /srv/snipeit/data:/var/lib/snipeit
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
- internal
|
||||||
|
|
||||||
snipeit-db:
|
snipeit-db:
|
||||||
image: mysql:5.6
|
image: mysql:5.6
|
||||||
|
@ -34,3 +34,5 @@ services:
|
||||||
MYSQL_PASSWORD: "snipeit"
|
MYSQL_PASSWORD: "snipeit"
|
||||||
volumes:
|
volumes:
|
||||||
- /srv/snipeit/other/db:/var/lib/mysql
|
- /srv/snipeit/other/db:/var/lib/mysql
|
||||||
|
networks:
|
||||||
|
- internal
|
Loading…
Reference in a new issue