|
|
@@ -6,23 +6,23 @@ services: |
|
|
|
volumes: |
|
|
|
- postgresql:/var/lib/postgresql/data |
|
|
|
backend: |
|
|
|
restart: always |
|
|
|
build: ./backend |
|
|
|
volumes: |
|
|
|
- backend:/backend |
|
|
|
- ./backend:/backend |
|
|
|
ports: |
|
|
|
- "8000:8000" |
|
|
|
depends_on: |
|
|
|
- db |
|
|
|
command: python manage.py runserver 0.0.0.0:8000 |
|
|
|
frontend: |
|
|
|
restart: always |
|
|
|
build: ./frontend |
|
|
|
volumes: |
|
|
|
- frontend:/frontend |
|
|
|
- ./frontend:/frontend |
|
|
|
- /frontend/node_modules |
|
|
|
ports: |
|
|
|
- "8080:8080" |
|
|
|
command: npm run dev |
|
|
|
nginx: |
|
|
|
restart: always |
|
|
|
build: ./nginx |
|
|
|
ports: |
|
|
|
- "80:80" |
|
|
@@ -37,6 +37,4 @@ services: |
|
|
|
- backend |
|
|
|
- frontend |
|
|
|
volumes: |
|
|
|
postgresql: |
|
|
|
backend: |
|
|
|
frontend: |
|
|
|
postgresql: |