improve docker compose and add standalone docs

This commit is contained in:
Maidul Islam
2023-05-09 22:02:05 -04:00
parent efdd1e64c4
commit 9cb4d5abb7
3 changed files with 79 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ title: "Docker Compose"
description: "Learn to install Infisical using our Docker Compose template"
---
1. Install Docker on your VM
## Install Docker on your VM
```bash
# Example in ubuntu
@@ -12,7 +12,7 @@ apt-get upgrade
apt install docker-compose
```
2. Download the required files
## Download the required files
```bash
# Download env file template
@@ -25,18 +25,23 @@ wget -O docker-compose.yml https://raw.githubusercontent.com/Infisical/infisical
mkdir nginx && wget -O ./nginx/default.conf https://raw.githubusercontent.com/Infisical/infisical/main/nginx/default.dev.conf
```
3. Tweak the `.env` according to your preferences. Refer to the available [environment variables](/self-hosting/configuration/envars)
## Update .env file
Tweak the `.env` according to your preferences. Refer to the available [environment variables](/self-hosting/configuration/envars)
```bash
# update environment variables like mongo login
nano .env
```
4. Get the service up and running.
<Info>
Infisical assumes that you have configured HTTPS. If you didn't configure HTTPS, set `HTTPS_ENABLED` to `false` in the .env file to avoid frequent logouts.
</Info>
## Get the service up and running.
```bash
# Start up services in detached mode
docker-compose -f docker-compose.yml up -d
```
5. Your Infisical installation is complete and should be running on [http://localhost:80](http://localhost:80). Please note that the containers are not exposed to the internet and only bind to the localhost. It's up to you to configure a firewall, SSL certificates, and implement any additional security measures.
Your Infisical installation is complete and should be running on [http://localhost:80](http://localhost:80). Please note that the containers are not exposed to the internet and only bind to the localhost. It's up to you to configure a firewall, SSL certificates, and implement any additional security measures.