mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Added docker-compose file
This commit is contained in:
parent
0158d753f0
commit
28b7a75538
1 changed files with 29 additions and 0 deletions
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
container_name: "2009scape_app"
|
||||
depends_on:
|
||||
- database
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- "2009scape_app:/app"
|
||||
ports:
|
||||
- "43595:43595"
|
||||
|
||||
database:
|
||||
image: mysql:5.7
|
||||
container_name: "2009scape_db"
|
||||
restart: always
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- "2009scape_db:/var/lib/mysql"
|
||||
- "./Server/db_exports/global.sql:/docker-entrypoint-initdb.d/global.sql"
|
||||
environment:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
||||
MYSQL_ROOT_PASSWORD: ""
|
||||
MYSQL_ROOT_USER: "root"
|
||||
volumes:
|
||||
2009scape_app:
|
||||
2009scape_db:
|
||||
Loading…
Add table
Add a link
Reference in a new issue