-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
68 lines (67 loc) · 1.6 KB
/
docker-compose.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3'
services:
db:
image: postgres:14.4
environment:
POSTGRES_DB: strapi
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_USER: ${DATABASE_USERNAME}
ports:
- 5432:5432
web:
build:
context: ./web
dockerfile: Dockerfile.dev
args:
PRIMARY_COLOR: ${PRIMARY_COLOR}
SECONDARY_COLOR: ${SECONDARY_COLOR}
volumes:
- /app/node_modules
- ./web/:/app
environment:
STRAPI_API_URL: http://cms:1337
STRAPI_PUBLIC_URL: ${STRAPI_URL}
STRAPI_TOKEN: ${STRAPI_TOKEN}
MERCHANT_ID: ${PAYTRAIL_MERCHANT_ID}
SECRET_KEY: ${PAYTRAIL_SECRET_KEY}
URL: ${URL}
cms:
build:
context: ./cms
dockerfile: Dockerfile.dev
args:
URL: ${STRAPI_URL}
volumes:
- /app/node_modules
- ./cms/:/app
environment:
HOST: 0.0.0.0
PORT: 1337
NODE_ENV: development
DATABASE_CLIENT: postgres
DATABASE_NAME: strapi
DATABASE_HOST: db
DATABASE_PORT: 5432
URL: ${STRAPI_URL}
DATABASE_USERNAME: ${DATABASE_USERNAME}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
APP_KEYS: ${APP_KEYS}
API_TOKEN_SALT: ${API_TOKEN_SALT}
ADMIN_JWT_SECRET: ${ADMIN_JWT_SECRET}
TRANSER_TOKEN_SALT: ${TRANSFER_TOKEN_SALT}
JWT_SECRET: ${JWT_SECRET}
SMTP_USER: ${SMTP_USER}
SMTP_PASSWORD: ${SMTP_PASSWORD}
ports:
- 1337:1337
depends_on:
- db
nginx:
image: nginx:latest
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- web
- cms
ports:
- 7800:7800