forked from axisofentropy/foodadvisor
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
43 lines (40 loc) · 1004 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
services:
client:
build: ./client
environment:
NEXT_PUBLIC_API_URL: https://deployment-5223-my-application.app.uffizzi.com
PREVIEW_SECRET: USGmBGempHrQ9Bu5DhNXBFxa
ports:
- "3000:3000"
depends_on:
- api
api:
build: ./api
environment:
CLIENT_URL: http://localhost:3000
STRAPI_ADMIN_CLIENT_URL: http://localhost:3000
STRAPI_ADMIN_CLIENT_PREVIEW_SECRET: USGmBGempHrQ9Bu5DhNXBFxa
DATABASE_CLIENT: postgres
DATABASE_HOST: db
DATABASE_PORT: 5432
DATABASE_NAME: strapi
DATABASE_USERNAME: strapi
DATABASE_PASSWORD: strapipassword
NODE_ENV: ${NODE_ENV}
ports:
- "1337:1337"
depends_on:
- db
db:
image: postgres:12-alpine
platform: linux/amd64
environment:
POSTGRES_USER: strapi
POSTGRES_PASSWORD: strapipassword
POSTGRES_DB: strapi
volumes:
- strapi-data:/var/lib/postgresql/data/
ports:
- "5432:5432"
volumes:
strapi-data: