fixing depyloment compose file

This commit is contained in:
ngn 2023-11-13 20:17:28 +03:00
parent 5fc2a49f24
commit aedac71ebd

View File

@ -30,28 +30,30 @@ installed on to the PATH by running the `install.sh` script. After installation
by running `admin_script`. by running `admin_script`.
## Deployment ## Deployment
Easiest way to deploy is to use docker. I have created a `compose.yaml` file so the API and the Easiest way to deploy is to use docker. I have created a `compose.yml` file so the API and the
frontend application can be deployed easily with just the `docker-compose up` command: frontend application can be deployed easily with just the `docker-compose up` command:
```yaml ```yaml
version: "3" version: "3"
services: services:
app: app:
build: ./app build:
ports: context: ./app
- "127.0.0.1:7002:4173" args:
depends_on: API_URL: "https://api.ngn.tf"
- api ports:
args: - "127.0.0.1:7002:4173"
API_URL: "https://api.ngn.tf" depends_on:
- api
api: api:
build: ./api build:
ports: context: ./api
- "127.0.0.1:7001:7001" args:
volumes: PASSWORD: "securepassword"
- ./api/api.db:/api.db ports:
args: - "127.0.0.1:7001:7001"
PASSWORD: "supersecure" volumes:
- ./api/api.db:/api.db
``` ```
## History ## History