@@ -0,0 +1,13 @@ | |||||
version: '2' | |||||
services: | |||||
backend: | |||||
volumes: | |||||
- ./backend:/backend | |||||
command: python manage.py runserver 0.0.0.0:8000 | |||||
frontend: | |||||
volumes: | |||||
- ./frontend:/frontend | |||||
- node_modules:/frontend/node_modules | |||||
command: npm run dev | |||||
volumes: | |||||
node_modules: |
@@ -1,5 +1,7 @@ | |||||
version: '2' | version: '2' | ||||
services: | services: | ||||
db: | |||||
restart: always | |||||
backend: | backend: | ||||
restart: always | restart: always | ||||
volumes: | volumes: | ||||
@@ -12,6 +14,8 @@ services: | |||||
command: npm start | command: npm start | ||||
nginx: | nginx: | ||||
restart: always | restart: always | ||||
environment: | |||||
- domain=lesspass.com | |||||
volumes: | volumes: | ||||
backend: | backend: | ||||
frontend: | frontend: |
@@ -1,34 +1,26 @@ | |||||
version: '2' | version: '2' | ||||
services: | services: | ||||
db: | db: | ||||
restart: always | |||||
image: postgres:9.5 | image: postgres:9.5 | ||||
volumes: | volumes: | ||||
- postgresql:/var/lib/postgresql/data | - postgresql:/var/lib/postgresql/data | ||||
backend: | backend: | ||||
build: ./backend | build: ./backend | ||||
volumes: | |||||
- ./backend:/backend | |||||
ports: | ports: | ||||
- "8000:8000" | - "8000:8000" | ||||
depends_on: | depends_on: | ||||
- db | - db | ||||
command: python manage.py runserver 0.0.0.0:8000 | |||||
frontend: | frontend: | ||||
build: ./frontend | build: ./frontend | ||||
volumes: | |||||
- ./frontend:/frontend | |||||
- /frontend/node_modules | |||||
ports: | ports: | ||||
- "8080:8080" | - "8080:8080" | ||||
command: npm run dev | |||||
nginx: | nginx: | ||||
build: ./nginx | build: ./nginx | ||||
ports: | ports: | ||||
- "80:80" | - "80:80" | ||||
- "443:443" | - "443:443" | ||||
environment: | environment: | ||||
- domain=lesspass.com | |||||
- domain=www.lesspass.com | |||||
volumes: | volumes: | ||||
- ./nginx/ssl:/certificates | - ./nginx/ssl:/certificates | ||||
volumes_from: | volumes_from: | ||||
@@ -1 +1 @@ | |||||
Subproject commit 7f840338d707b3519f97e0cd3f9b44914e5b96fb | |||||
Subproject commit 038ad30aee69ba1f1b15804065fa79421939cbcb |
@@ -1 +1 @@ | |||||
Subproject commit 14cc12d27ddd424a56d9b26eef975632c02cc3fc | |||||
Subproject commit 34c2913c10e889a68ee8e14fcd10b9a34f8f335c |