|
|
@ -1,26 +1,31 @@ |
|
|
|
version: "3" |
|
|
|
version: "3" |
|
|
|
|
|
|
|
|
|
|
|
services: |
|
|
|
services: |
|
|
|
|
|
|
|
database: |
|
|
|
|
|
|
|
image: postgres:13.4-alpine |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
- POSTGRES_USER=nextcloud |
|
|
|
|
|
|
|
- POSTGRES_PASSWORD=nextcloud |
|
|
|
|
|
|
|
- POSTGRES_DB=nextcloud |
|
|
|
|
|
|
|
volumes: |
|
|
|
|
|
|
|
- ./database:/var/lib/postgresql/data |
|
|
|
|
|
|
|
restart: always |
|
|
|
|
|
|
|
|
|
|
|
nextcloud: |
|
|
|
nextcloud: |
|
|
|
image: nextcloud:23.0.4 |
|
|
|
image: nextcloud:23.0.4 |
|
|
|
restart: unless-stopped |
|
|
|
restart: unless-stopped |
|
|
|
ports: |
|
|
|
ports: |
|
|
|
- 9000:80 |
|
|
|
- 9000:80 |
|
|
|
environment: |
|
|
|
environment: |
|
|
|
- MYSQL_HOST=mysql |
|
|
|
- POSTGRES_HOST=database |
|
|
|
- MYSQL_DATABASE=nextcloud |
|
|
|
- POSTGRES_DB=nextcloud |
|
|
|
- MYSQL_USER=nextcloud |
|
|
|
- POSTGRES_USER=nextcloud |
|
|
|
- MYSQL_PASSWORD=nextcloud |
|
|
|
- POSTGRES_PASSWORD=nextcloud |
|
|
|
|
|
|
|
- NEXTCLOUD_TRUSTED_DOMAINS=spacestation |
|
|
|
|
|
|
|
- NEXTCLOUD_ADMIN_USER=admin |
|
|
|
|
|
|
|
- NEXTCLOUD_ADMIN_PASSWORD=admin |
|
|
|
volumes: |
|
|
|
volumes: |
|
|
|
- ./nextcloud:/var/www/html |
|
|
|
- ./nextcloud:/var/www/html |
|
|
|
|
|
|
|
depends_on: |
|
|
|
|
|
|
|
- database |
|
|
|
|
|
|
|
|
|
|
|
mysql: |
|
|
|
|
|
|
|
image: mysql:8.0 |
|
|
|
|
|
|
|
restart: unless-stopped |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
- MYSQL_DATABASE=nextcloud |
|
|
|
|
|
|
|
- MYSQL_USER=nextcloud |
|
|
|
|
|
|
|
- MYSQL_PASSWORD=nextcloud |
|
|
|
|
|
|
|
- MYSQL_ROOT_PASSWORD=nextcloud |
|
|
|
|
|
|
|
volumes: |
|
|
|
|
|
|
|
- ./mysql:/var/lib/mysql |
|
|
|
|
|
|
|