mirror of
https://github.com/directus/directus.git
synced 2026-01-23 03:08:08 -05:00
Fix formatting in docker docs
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Installing with Docker
|
||||
|
||||
Directus is published to both [DockerHub](https://hub.docker.com/r/directus/directus) and
|
||||
[GitHub Packages](https://github.com/orgs/directus/packages/container/package/directus) under
|
||||
`directus/directus`. To run Directus straight from DockerHub, run:
|
||||
[GitHub Packages](https://github.com/orgs/directus/packages/container/package/directus) under `directus/directus`. To
|
||||
run Directus straight from DockerHub, run:
|
||||
|
||||
```bash
|
||||
docker run -p 8055:8055 directus/directus
|
||||
@@ -10,9 +10,8 @@ docker run -p 8055:8055 directus/directus
|
||||
|
||||
### Installing Specific Versions
|
||||
|
||||
For every version we release, we update/publish three tags. This allows you to use the latest
|
||||
released version, the latest minor (eg v9.1) or a specific version (eg v9.1.2). To run Directus on a
|
||||
specific version, run:
|
||||
For every version we release, we update/publish three tags. This allows you to use the latest released version, the
|
||||
latest minor (eg v9.1) or a specific version (eg v9.1.2). To run Directus on a specific version, run:
|
||||
|
||||
```bash
|
||||
docker run -p 8055:8055 directus/directus:v9
|
||||
@@ -24,8 +23,8 @@ docker run -p 8055:8055 directus/directus:v9.1.2
|
||||
|
||||
### Create admin user using docker
|
||||
|
||||
The published Docker image will automatically populate the database, and create a user. To configure
|
||||
the email/password for this first user, pass the following env vars:
|
||||
The published Docker image will automatically populate the database, and create a user. To configure the email/password
|
||||
for this first user, pass the following env vars:
|
||||
|
||||
```bash
|
||||
DIRECTUS_ADMIN_EMAIL="admin@example.com"
|
||||
@@ -39,47 +38,47 @@ When using Docker compose, you can use the following setup to get you started:
|
||||
```yaml
|
||||
version: '3.2'
|
||||
services:
|
||||
database:
|
||||
image: postgres:12
|
||||
volumes:
|
||||
- ./data/database:/var/lib/postgresql/data
|
||||
networks:
|
||||
- directus
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
POSTGRES_USER: 'directus'
|
||||
POSTGRES_PASSWORD: 'directus'
|
||||
POSTGRES_DB: 'directus'
|
||||
database:
|
||||
image: postgres:12
|
||||
volumes:
|
||||
- ./data/database:/var/lib/postgresql/data
|
||||
networks:
|
||||
- directus
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
POSTGRES_USER: 'directus'
|
||||
POSTGRES_PASSWORD: 'directus'
|
||||
POSTGRES_DB: 'directus'
|
||||
|
||||
cache:
|
||||
image: redis:6
|
||||
networks:
|
||||
- directus
|
||||
ports:
|
||||
- 6379:6379
|
||||
cache:
|
||||
image: redis:6
|
||||
networks:
|
||||
- directus
|
||||
ports:
|
||||
- 6379:6379
|
||||
|
||||
directus:
|
||||
image: directus/directus:v9.0.0-rc.19
|
||||
ports:
|
||||
- 8055:8055
|
||||
networks:
|
||||
- directus
|
||||
environment:
|
||||
KEY: '255d861b-5ea1-5996-9aa3-922530ec40b1'
|
||||
SECRET: '6116487b-cda1-52c2-b5b5-c8022c45e263'
|
||||
directus:
|
||||
image: directus/directus:v9.0.0-rc.19
|
||||
ports:
|
||||
- 8055:8055
|
||||
networks:
|
||||
- directus
|
||||
environment:
|
||||
KEY: '255d861b-5ea1-5996-9aa3-922530ec40b1'
|
||||
SECRET: '6116487b-cda1-52c2-b5b5-c8022c45e263'
|
||||
|
||||
DB_CLIENT: 'pg'
|
||||
DB_HOST: 'database'
|
||||
DB_PORT: '5432'
|
||||
DB_DATABASE: 'directus'
|
||||
DB_USER: 'directus'
|
||||
DB_PASSWORD: 'directus'
|
||||
DB_CLIENT: 'pg'
|
||||
DB_HOST: 'database'
|
||||
DB_PORT: '5432'
|
||||
DB_DATABASE: 'directus'
|
||||
DB_USER: 'directus'
|
||||
DB_PASSWORD: 'directus'
|
||||
|
||||
CACHE_ENABLED: 'true'
|
||||
CACHE_STORE: 'redis'
|
||||
CACHE_REDIS: 'redis://cache:6379'
|
||||
CACHE_ENABLED: 'true'
|
||||
CACHE_STORE: 'redis'
|
||||
CACHE_REDIS: 'redis://cache:6379'
|
||||
|
||||
networks:
|
||||
directus:
|
||||
directus:
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user