1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-08-16 21:50:33 +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:
Divlo 2021-04-28 06:01:26 +02:00 committed by GitHub
parent a576ecfc7d
commit ede7e78bd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -7,8 +7,11 @@ services:
image: 'leonai/leon'
ports:
- '${LEON_PORT:-1337}:${LEON_PORT:-1337}'
environment:
LEON_PORT: ${LEON_PORT:-1337}
stdin_open: true
tty: true
command: 'npm run dev:server && npm run dev:app'
volumes:
- './:/app'
- 'node_modules:/app/node_modules'

View File

@ -7,6 +7,8 @@ services:
image: 'leonai/leon'
ports:
- '${LEON_PORT:-1337}:${LEON_PORT:-1337}'
environment:
LEON_PORT: ${LEON_PORT:-1337}
stdin_open: true
tty: true
command: 'npm run start'