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