Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c1a32c1a30 | ||
|
|
adc971f587 | ||
|
|
28a3c48cdb | ||
| 7e2ac3f488 |
2 changed files with 35 additions and 34 deletions
|
|
@ -21,8 +21,10 @@ and run:
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Start the container
|
### Start the container (in the project root)
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker compose up --build
|
docker compose up --build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can then access the website on `localhost:8080`
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,32 @@
|
||||||
version: '3.1'
|
version: '3.1'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
build: backend/db
|
build: backend/db
|
||||||
container_name: postgres-db
|
container_name: postgres-db
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: ${POSTGRES_DB}
|
POSTGRES_DB: ${POSTGRES_DB}
|
||||||
POSTGRES_USER: ${POSTGRES_USER}
|
POSTGRES_USER: ${POSTGRES_USER}
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
ports:
|
ports:
|
||||||
- "${POSTGRES_PORT}:5432"
|
- "${POSTGRES_PORT}:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend/pgdata:/var/lib/postgresql/data
|
- ./backend/pgdata:/var/lib/postgresql/data
|
||||||
|
|
||||||
api:
|
api:
|
||||||
build: backend/api
|
build: backend/api
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
container_name: express-api
|
container_name: express-api
|
||||||
ports:
|
ports:
|
||||||
- "${EXPRESS_PORT}:3000"
|
- "${EXPRESS_PORT}:3000"
|
||||||
|
|
||||||
vue:
|
vue:
|
||||||
build: frontend
|
build: frontend
|
||||||
container_name: frontend
|
container_name: frontend
|
||||||
ports:
|
ports:
|
||||||
- "${FRONTEND_PORT}:8080"
|
- "${FRONTEND_PORT}:8080"
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./frontend:/app
|
- ./frontend:/app
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue