-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (37 loc) · 974 Bytes
/
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
version: '3'
services:
frontend:
image: node:14-alpine3.12
working_dir: /app
command: yarn run frontend:dev
volumes:
- ./nextjs-frontend:/app:cached
environment:
NEXT_PUBLIC_GRAPHQL_API_URI: 'http://easy-deep-learning.local/graphql'
NEXT_PUBLIC_GRAPHQL_API_URI_SSR: 'http://backend:1337/graphql'
NODE_ENV: development
depends_on:
- backend
nginx:
image: nginx:1.21.0-alpine
volumes:
- ./nginx/config/nginx.development.conf:/etc/nginx/nginx.conf:ro
ports:
- 80:80
- 443:443
depends_on:
- backend
- frontend
backend:
image: strapi/strapi
environment:
NODE_ENV: development
MONGO_DB_DATABASE_URI: ${MONGO_DB_DATABASE_URI}
MONGO_DB_DATABASE_NAME: ${MONGO_DB_DATABASE_NAME}
JWT_SECRET: ${JWT_SECRET}
ports:
- "1337:1337"
working_dir: /app
command: yarn run backend:dev
volumes:
- ./strapi-backend:/app:cached