Skip to content

Commit 2513cca

Browse files
committed
Refactor Docker configuration for Questions Service
1 parent 59e4c01 commit 2513cca

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

backend/question/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,40 @@
33
This directory contains the code for the Template
44
Service.
55

6+
7+
# Questions Service
8+
9+
## Running with Docker (Standalone)
10+
11+
1. Run this command to build:
12+
```sh
13+
docker build \
14+
-t question-express-local \
15+
--build-arg port=9002 \
16+
-f express.Dockerfile .
17+
```
18+
2. Run this command, from the root folder:
19+
```sh
20+
make db-up
21+
```
22+
23+
3. Run the necessary migrate and seed commands, if you haven't yet.
24+
25+
4. Run this command to expose the container:
26+
```sh
27+
docker run -p 9002:9002 --env-file ./.env.docker question-express-local
28+
```
29+
30+
## Running with Docker-Compose (Main config)
31+
32+
Edit the variables in the `.env.compose` file and run `make up` from the root folder.
33+
34+
Any startup instructions will be run from `entrypoint.sh` instead.
35+
36+
37+
38+
39+
640
## Database
741
842
We use:

0 commit comments

Comments
 (0)