able to run server without in docker

This commit is contained in:
wancat committed 2024-02-05 12:41:07 +08:00
1 parent 19cd66475c
commit ec4e97a7d6
4 files changed
+4 -8

No files matched your search

+1 -3
View File
@@ -16,8 +16,6 @@ const containerOptions = {
},
}
// const network = engine.getNetwork(config.dockerNetwork)
export function createContainer(name, questId) {
const option = {
...containerOptions,
@@ -56,7 +54,7 @@ export async function attachContainer(container, { token }) {
Tty: true,
Env: [
`TOKEN=${token}`,
`API_ENDPOINT=http://backend:3000`,
`API_ENDPOINT=${config.backendUrl}`,
'ZDOTDIR=/etc/zsh',
],
})