forked from christianlupus-nextcloud/nextcloud-docker-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (46 loc) · 1.26 KB
/
docker-compose.yml
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
48
49
50
51
52
53
54
version: "2"
volumes:
db:
services:
db:
image: mariadb:latest
restart: unless-stopped
volumes:
- db:/var/lib/mysql
env_file:
- db.env
redis:
image: redis:latest
restart: unless-stopped
command: redis-server --requirepass redis_pwd
app:
build: ./app
restart: unless-stopped
volumes: &vol_mount
- ./volumes/base:/var/www/html
- ./volumes/config:/var/www/html/config
- ./volumes/apps:/var/www/html/apps
- ./volumes/data:/var/www/html/data
- ./volumes/custom_apps:/var/www/html/custom_apps
# - /etc/localtime:/etc/localtime:ro
- ./volumes/xdebug:/xdebug
depends_on:
- db
- redis
env_file:
- db.env
environment:
MYSQL_HOST: db
NEXTCLOUD_ADMIN_USER: admin
NEXTCLOUD_ADMIN_PASSWORD: admin_pwd
REDIS_HOST: redis
REDIS_HOST_PASSWORD: redis_pwd
DEBUG_USER_ID: 1000
ports:
- 8000:80
cli:
build: ./app
restart: 'no'
volumes: *vol_mount
entrypoint: []
command: ['/bin/bash']