本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
說明
登入
heuzef
/
lesspass
镜像来自
https://github.com/lesspass/lesspass.git
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
67
Wiki
活動
瀏覽代碼
use default docker compose pattern for dev and production
pull/44/head
Guillaume Vincent
8 年之前
父節點
5c6770d946
當前提交
2b741f0f92
共有
5 個檔案被更改
,包括
20 行新增
和
11 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+13
-0
docker-compose.override.yml
+4
-0
docker-compose.prod.yml
+1
-9
docker-compose.yml
+1
-1
frontend
+1
-1
nginx
+ 13
- 0
docker-compose.override.yml
查看文件
@@ -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:
+ 4
- 0
docker-compose.prod.yml
查看文件
@@ -1,5 +1,7 @@
version: '2'
services:
db:
restart: always
backend:
restart: always
volumes:
@@ -12,6 +14,8 @@ services:
command: npm start
nginx:
restart: always
environment:
- domain=lesspass.com
volumes:
backend:
frontend:
+ 1
- 9
docker-compose.yml
查看文件
@@ -1,34 +1,26 @@
version: '2'
services:
db:
restart: always
image: postgres:9.5
volumes:
- postgresql:/var/lib/postgresql/data
backend:
build: ./backend
volumes:
- ./backend:/backend
ports:
- "8000:8000"
depends_on:
- db
command: python manage.py runserver 0.0.0.0:8000
frontend:
build: ./frontend
volumes:
- ./frontend:/frontend
- /frontend/node_modules
ports:
- "8080:8080"
command: npm run dev
nginx:
build: ./nginx
ports:
- "80:80"
- "443:443"
environment:
- domain=lesspass.com
- domain=
www.
lesspass.com
volumes:
- ./nginx/ssl:/certificates
volumes_from:
+ 1
- 1
frontend
@@ -1 +1 @@
Subproject commit
7f840338d707b3519f97e0cd3f9b44914e5b96f
b
Subproject commit
038ad30aee69ba1f1b15804065fa79421939cbc
b
+ 1
- 1
nginx
@@ -1 +1 @@
Subproject commit
14cc12d27ddd424a56d9b26eef975632c02cc3f
c
Subproject commit
34c2913c10e889a68ee8e14fcd10b9a34f8f335
c
Write
Preview
Loading…
取消
儲存