|
@@ -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:
|