mirror of
https://github.com/TronoSfera/Law.git
synced 2026-05-18 18:13:46 +03:00
add cert 2.2
This commit is contained in:
parent
1d6f575657
commit
f7b002a08e
2 changed files with 6 additions and 3 deletions
|
|
@ -19,6 +19,9 @@ Prerequisites:
|
||||||
- DNS `A` record: `ruakb.ru -> 45.150.36.116`
|
- DNS `A` record: `ruakb.ru -> 45.150.36.116`
|
||||||
- Optional DNS `A` record: `www.ruakb.ru -> 45.150.36.116`
|
- Optional DNS `A` record: `www.ruakb.ru -> 45.150.36.116`
|
||||||
- Open server ports: `80/tcp`, `443/tcp`
|
- Open server ports: `80/tcp`, `443/tcp`
|
||||||
|
- DB credentials in `.env` must be consistent:
|
||||||
|
- `DATABASE_URL=postgresql+psycopg://postgres:<password>@db:5432/legal`
|
||||||
|
- `POSTGRES_PASSWORD=<same password>`
|
||||||
|
|
||||||
Initial certificate issue (bootstrap with nginx on port 80 only):
|
Initial certificate issue (bootstrap with nginx on port 80 only):
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
|
|
@ -106,9 +106,9 @@ services:
|
||||||
container_name: law-db
|
container_name: law-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||||
POSTGRES_DB: legal
|
POSTGRES_DB: ${POSTGRES_DB:-legal}
|
||||||
ports: ["5432:5432"]
|
ports: ["5432:5432"]
|
||||||
volumes: ["pgdata:/var/lib/postgresql/data"]
|
volumes: ["pgdata:/var/lib/postgresql/data"]
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue