-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
47 lines (47 loc) · 1.21 KB
/
Copy pathcompose.yml
File metadata and controls
47 lines (47 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
services:
nextcloud:
container_name: nextcloud
image: "${NEXTCLOUD_IMAGE}"
depends_on:
- postgres
- redis
environment:
NEXTCLOUD_ADMIN_USER: admin
NEXTCLOUD_ADMIN_PASSWORD: admin
POSTGRES_HOST: postgres
POSTGRES_DB: nextcloud
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
REDIS_HOST: redis
REDIS_HOST_PASSWORD: nextcloud
ports:
- "127.0.0.1:80:80"
volumes:
- nextcloud-data:/var/www/html
postgres:
container_name: postgres
image: postgres:14-alpine
ports:
- "127.0.0.1:5432:5432"
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
container_name: redis
image: redis:6.2.3
command: redis-server --requirepass nextcloud
mariadb:
container_name: mariadb
image: mariadb:10.6.16
ports:
- "127.0.0.1:3306:3306"
environment:
MARIADB_ROOT_PASSWORD: mariadb
MARIADB_DATABASE: "${POSTGRES_USER}"
MARIADB_USER: "${POSTGRES_USER}"
MARIADB_PASSWORD: "${POSTGRES_PASSWORD}"
volumes:
nextcloud-data:
postgres-data: