You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
697 B
35 lines
697 B
version: "3.8" |
|
|
|
services: |
|
nginx: |
|
build: |
|
context: ./devops/nginx |
|
depends_on: |
|
- frontend |
|
- server |
|
volumes: |
|
- ./devops/nginx/nginx.conf:/etc/nginx/nginx.conf |
|
ports: |
|
- 80:80 |
|
- 443:443 |
|
|
|
frontend: |
|
build: |
|
context: ./frontend |
|
volumes: |
|
- ./frontend/src:/usr/src/frontend/src |
|
- ./frontend/public:/usr/src/frontend/public |
|
ports: |
|
- 3000:3000 |
|
environment: |
|
CHOKIDAR_USEPOLLING: "true" |
|
command: ["npm", "run", "start"] |
|
|
|
server: |
|
build: |
|
context: ./server |
|
volumes: |
|
- ./server:/usr/src/server |
|
ports: |
|
- 8000:8000 |
|
command: ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
|
|