mirror of
https://github.com/leon-ai/leon.git
synced 2024-10-26 18:18:46 +03:00
chore(docker): fix docker in dev env and fix wrong LEON_PORT (#240)
* chore(docker-dev): ignore node_modules in the volume * chore(docker): fix wrong LEON_PORT env variable
This commit is contained in:
parent
a576ecfc7d
commit
ede7e78bd6
@ -7,8 +7,11 @@ services:
|
|||||||
image: 'leonai/leon'
|
image: 'leonai/leon'
|
||||||
ports:
|
ports:
|
||||||
- '${LEON_PORT:-1337}:${LEON_PORT:-1337}'
|
- '${LEON_PORT:-1337}:${LEON_PORT:-1337}'
|
||||||
|
environment:
|
||||||
|
LEON_PORT: ${LEON_PORT:-1337}
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
command: 'npm run dev:server && npm run dev:app'
|
command: 'npm run dev:server && npm run dev:app'
|
||||||
volumes:
|
volumes:
|
||||||
- './:/app'
|
- './:/app'
|
||||||
|
- 'node_modules:/app/node_modules'
|
||||||
|
@ -7,6 +7,8 @@ services:
|
|||||||
image: 'leonai/leon'
|
image: 'leonai/leon'
|
||||||
ports:
|
ports:
|
||||||
- '${LEON_PORT:-1337}:${LEON_PORT:-1337}'
|
- '${LEON_PORT:-1337}:${LEON_PORT:-1337}'
|
||||||
|
environment:
|
||||||
|
LEON_PORT: ${LEON_PORT:-1337}
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
command: 'npm run start'
|
command: 'npm run start'
|
||||||
|
Loading…
Reference in New Issue
Block a user