-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for using Docker Compose
Also using Docker for development now makes use of the local Doppler config instead of requiring a service token.
- Loading branch information
1 parent
d53a595
commit 79c6f9f
Showing
6 changed files
with
60 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
echo "[info]: Configuring container for development" | ||
echo "[info]: Doppler config: $DOPPLER_PROJECT => $DOPPLER_CONFIG" | ||
echo "[info]: Installing development dependencies" | ||
cp package.json -f ../ | ||
cd ../ | ||
npm install --only=dev && cd ./app | ||
export PATH=$PATH:/usr/src/node_modules/.bin | ||
echo "[info]: Development environment configured" | ||
echo "[info]: Starting server" | ||
nodemon npm start |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
services: | ||
web: | ||
user: root # Required to install dev dependencies | ||
stdin_open: true | ||
tty: true | ||
environment: | ||
DOPPLER_TOKEN: $DOPPLER_TOKEN | ||
DOPPLER_PROJECT: $DOPPLER_PROJECT | ||
DOPPLER_CONFIG: $DOPPLER_CONFIG | ||
volumes: | ||
- .:/usr/src/app | ||
command: ./bin/docker-dev-command.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
services: | ||
web: | ||
build: . | ||
image: dopplerhq/yodaspeak | ||
container_name: yodaspeak | ||
init: true | ||
environment: | ||
DOPPLER_TOKEN: $YODASPEAK_SERVICE_TOKEN | ||
ports: | ||
- 3000:3000 | ||
- 3443:3443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters