-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
46 lines (46 loc) · 1020 Bytes
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: "3.9"
services:
pgsql:
image: postgres:14.0
container_name: pgsql
environment:
- POSTGRES_USER=blog
- POSTGRES_PASSWORD=blog
- POSTGRES_DB=blog
ulimits:
nofile:
soft: 40000
hard: 40000
volumes:
- ./.local/pgsql/data:/var/lib/pgsql
ports:
- 5432:5432
backend:
build:
context: ./backend
container_name: backend
environment:
- HOST=0.0.0.0
- PROXY=true
- DATABASE_HOST=pgsql
- DATABASE_PORT=5432
- DATABASE_NAME=blog
- DATABASE_USERNAME=blog
- DATABASE_PASSWORD=blog
- STRAPI_TELEMETRY_DISABLED=true
- ADMIN_JWT_SECRET=NByiR7Dl2bARt9qGrvnLRw==
- API_TOKEN_SALT=F9P0Mc//gq44Al0eEpsk6A==
depends_on:
- pgsql
ports:
- 1337:1337
frontend:
build:
context: ./frontend
container_name: frontend
environment:
- NEXT_PUBLIC_STRAPI_API_URL=http://backend:1337
depends_on:
- backend
ports:
- 3000:3000