Skip to content
Snippets Groups Projects
Commit 05ab37ee authored by Paolo.Brasolin's avatar Paolo.Brasolin
Browse files

feat: #be dev cli on compose

parent 392f3f87
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,21 @@ services: ...@@ -15,6 +15,21 @@ services:
- PORT=8080 - PORT=8080
- DATABASE_URL=postgres://db_user:db_pass@database/db_name - DATABASE_URL=postgres://db_user:db_pass@database/db_name
command: npm run serve command: npm run serve
cli:
# docker-compose -f docker-compose.dev.yml run cli
stdin_open: true # docker run -i
tty: true # docker run -t
build:
context: .
dockerfile: Dockerfile
target: base
volumes:
- ./src:/app/src
- ./seeds:/app/seeds
- ./migrations:/app/migrations
environment:
- DATABASE_URL=postgres://db_user:db_pass@database/db_name
command: /bin/sh
database: database:
image: postgres:14-alpine image: postgres:14-alpine
restart: always restart: always
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment