瀏覽代碼

init

tags/v1.0.0
Robin Thoni 6 年之前
父節點
當前提交
7d83c975e2
共有 4 個檔案被更改,包括 51 行新增0 行删除
  1. 39
    0
      docker-compose.yml
  2. 10
    0
      env
  3. 1
    0
      owncloud/Dockerfile
  4. 1
    0
      postgresql/Dockerfile

+ 39
- 0
docker-compose.yml 查看文件

@@ -0,0 +1,39 @@
1
+version: '2'
2
+
3
+services:
4
+    postgresql:
5
+        build: ./postgresql
6
+        container_name: owncloud-postgresql
7
+#        restart: unless-stopped
8
+        networks:
9
+            owncloud.internal.docker:
10
+                aliases:
11
+                    - postgresql.owncloud.internal.docker
12
+        volumes:
13
+            - ./data/postgresql/data:/var/lib/postgresql/data
14
+            - ./data/postgresql/backup:/var/lib/postgresql/backup
15
+        ports:
16
+            - "127.0.0.1:35080:5432"
17
+        env_file:
18
+            - env
19
+
20
+    owncloud:
21
+        build: ./owncloud
22
+        container_name: owncloud-owncloud
23
+#        restart: unless-stopped
24
+        networks:
25
+            owncloud.internal.docker:
26
+                aliases:
27
+                    - owncloud.owncloud.internal.docker
28
+        volumes:
29
+            - ./data/owncloud/apps:/var/www/html/apps
30
+            - ./data/owncloud/config:/var/www/html/config
31
+            - ./data/owncloud/data:/var/www/html/data
32
+        ports:
33
+          #- "127.0.0.1:35081:80"
34
+            - "0.0.0.0:35081:80"
35
+        env_file:
36
+            - env
37
+
38
+networks:
39
+    owncloud.internal.docker:

+ 10
- 0
env 查看文件

@@ -0,0 +1,10 @@
1
+POSTGRES_MASTER_MODE=1
2
+POSTGRES_HOST=postgresql.owncloud.internal.docker
3
+POSTGRES_USER=owncloud
4
+POSTGRES_PASSWORD=change_it
5
+POSTGRES_DB=owncloud
6
+POSTGRES_REP_USER=replicator
7
+POSTGRES_REP_PASSWORD=change_it
8
+POSTGRES_REP_ALLOWED_HOST=127.0.0.1/32
9
+POSTGRES_RO_USER=owncloud_ro
10
+POSTGRES_RO_PASSWORD=change_it

+ 1
- 0
owncloud/Dockerfile 查看文件

@@ -0,0 +1 @@
1
+FROM owncloud:10.0-apache

+ 1
- 0
postgresql/Dockerfile 查看文件

@@ -0,0 +1 @@
1
+FROM robinthoni/postgres-backup-multiarch:9.6-1.1.0

Loading…
取消
儲存