mirror of
https://github.com/Part-DB/Part-DB-docker.git
synced 2025-06-20 21:35:52 +02:00
Added docker compose files and start stop scripts for windows.
This commit is contained in:
parent
0635a1bedc
commit
9aa6874962
6 changed files with 58 additions and 0 deletions
26
latest/docker-compose.yml
Normal file
26
latest/docker-compose.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
version: '3'
|
||||
services:
|
||||
partdb:
|
||||
image: jbtronics/part-db:latest
|
||||
ports:
|
||||
#Replace 8888 with the port, under which Part-DB should appear
|
||||
- "8888:80"
|
||||
depends_on:
|
||||
- database
|
||||
volumes:
|
||||
- partdb-data:/var/www/html/data
|
||||
restart: always
|
||||
|
||||
database:
|
||||
image: mariadb:latest
|
||||
volumes:
|
||||
- partdb-database:/var/lib/mysql
|
||||
environment:
|
||||
# Set MYSQL_ROOT_PASSWORD to a unique password!!
|
||||
MYSQL_ROOT_PASSWORD: changeme
|
||||
MYSQL_DATABASE: partdb
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
partdb-database:
|
||||
partdb-data:
|
2
latest/server_start.bat
Normal file
2
latest/server_start.bat
Normal file
|
@ -0,0 +1,2 @@
|
|||
docker-compose up -d
|
||||
start "" http://localhost:8888
|
1
latest/server_stop.bat
Normal file
1
latest/server_stop.bat
Normal file
|
@ -0,0 +1 @@
|
|||
docker-compose down
|
26
stable/docker-compose.yml
Normal file
26
stable/docker-compose.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
version: '3'
|
||||
services:
|
||||
partdb:
|
||||
image: jbtronics/part-db:stable
|
||||
ports:
|
||||
#Replace 8888 with the port, under which Part-DB should appear
|
||||
- "8888:80"
|
||||
depends_on:
|
||||
- database
|
||||
volumes:
|
||||
- partdb-data:/var/www/html/data
|
||||
restart: always
|
||||
|
||||
database:
|
||||
image: mariadb:latest
|
||||
volumes:
|
||||
- partdb-database:/var/lib/mysql
|
||||
environment:
|
||||
# Set MYSQL_ROOT_PASSWORD to a unique password!!
|
||||
MYSQL_ROOT_PASSWORD: changeme
|
||||
MYSQL_DATABASE: partdb
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
partdb-database:
|
||||
partdb-data:
|
2
stable/server_start.bat
Normal file
2
stable/server_start.bat
Normal file
|
@ -0,0 +1,2 @@
|
|||
docker-compose up -d
|
||||
start "" http://localhost:8888
|
1
stable/server_stop.bat
Normal file
1
stable/server_stop.bat
Normal file
|
@ -0,0 +1 @@
|
|||
docker-compose down
|
Loading…
Add table
Add a link
Reference in a new issue