File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 3
3
This directory contains the code for the Template
4
4
Service.
5
5
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
+
6
40
## Database
7
41
8
42
We use:
You can’t perform that action at this time.
0 commit comments