-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (45 loc) · 974 Bytes
/
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
version: "3"
services:
app:
image: nextcloud:fpm
container_name: ${APP_NAME}_app
restart: unless-stopped
volumes:
- ./data/app:/var/www/html
depends_on:
- database
env_file:
- .env
- .env.local
logging:
driver: json-file
options:
max-size: "1m"
max-file: "10"
http:
image: nginx
container_name: ${APP_NAME}_http
restart: unless-stopped
ports:
- 127.0.0.1:${APP_PORT}:80
depends_on:
- app
volumes:
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
volumes_from:
- app
database:
image: mariadb
container_name: ${APP_NAME}_database
restart: unless-stopped
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- ./data/mysql:/var/lib/mysql
env_file:
- .env
- .env.local
logging:
driver: json-file
options:
max-size: "1m"
max-file: "10"