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
|
||||
```
|
||||
|
||||
### Start the container
|
||||
### Start the container (in the project root)
|
||||
|
||||
```shell
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
You can then access the website on `localhost:8080`
|
||||
|
|
|
|||
|
|
@ -1,33 +1,32 @@
|
|||
version: '3.1'
|
||||
|
||||
services:
|
||||
db:
|
||||
build: backend/db
|
||||
container_name: postgres-db
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
ports:
|
||||
- "${POSTGRES_PORT}:5432"
|
||||
volumes:
|
||||
- ./backend/pgdata:/var/lib/postgresql/data
|
||||
|
||||
api:
|
||||
build: backend/api
|
||||
depends_on:
|
||||
- db
|
||||
container_name: express-api
|
||||
ports:
|
||||
- "${EXPRESS_PORT}:3000"
|
||||
|
||||
vue:
|
||||
build: frontend
|
||||
container_name: frontend
|
||||
ports:
|
||||
- "${FRONTEND_PORT}:8080"
|
||||
|
||||
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
db:
|
||||
build: backend/db
|
||||
container_name: postgres-db
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
ports:
|
||||
- "${POSTGRES_PORT}:5432"
|
||||
volumes:
|
||||
- ./backend/pgdata:/var/lib/postgresql/data
|
||||
|
||||
api:
|
||||
build: backend/api
|
||||
depends_on:
|
||||
- db
|
||||
container_name: express-api
|
||||
ports:
|
||||
- "${EXPRESS_PORT}:3000"
|
||||
|
||||
vue:
|
||||
build: frontend
|
||||
container_name: frontend
|
||||
ports:
|
||||
- "${FRONTEND_PORT}:8080"
|
||||
|
||||
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue