mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-18 09:15:13 +00:00
ccccdecb6a
* add Dockerfile * add docker-compose.yml * Github workflow to build and deploy docker image * workdir /data/ instead of /app/ * use a local directory instead of a named volume This makes the settings.json more accessible from the outside by default, but is less portable. The -v command with $PWD might not work on native Windows shells, but rather wants an absolute Windows path like C:\User\... or /c/User/... And on Linux, because the /data/ directory and the settings.json will be owned by root. Though that can be changed. * more docker-compose command examples * add linux/arm/v7 ; improve build & runtime * fix: just arm not arm32 * test docker build for PRs * back to the microsoft runtime
12 lines
197 B
YAML
12 lines
197 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
server:
|
|
image: ghcr.io/sanae6/smo-online-server
|
|
#build: .
|
|
#user: 1000:1000
|
|
stdin_open: true
|
|
ports:
|
|
- 1027:1027
|
|
volumes:
|
|
- ./data/:/data/
|