refactor: split docker install with env

This commit is contained in:
Danny Avila 2024-06-30 17:22:53 -04:00
parent 104dc9a08e
commit a950f57ee6
No known key found for this signature in database
GPG key ID: 2DD9CC89B9B50364
4 changed files with 33 additions and 21 deletions

View file

@ -2,9 +2,11 @@ version: "3.8"
services:
app:
build:
build:
context: ..
dockerfile: .devcontainer/Dockerfile
args:
- INSTALL_DOCKER=${INSTALL_DOCKER:-false}
# restart: always
links:
- mongodb
@ -37,7 +39,7 @@ services:
user: vscode
# Overrides default command so things don't shut down after the process ends.
command: /bin/sh -c "while sleep 1000; do :; done"
command: /bin/sh -c "while sleep 1000; do :; done"
mongodb:
container_name: chat-mongodb