-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
70 lines (65 loc) · 1.44 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.8'
services:
app:
build: .
command: /start-app.sh
restart: unless-stopped
networks:
- default
- internal_network
depends_on:
- mariadb
env_file:
- docker.app.env
- docker.db.env
volumes:
- ./storage/logs:/var/www/application/logs
- ./storage/backup:/var/www/backup
- ./storage/updates:/var/www/updates
- ./storage/uploads:/var/www/uploads
web:
build: .
command: /start-web.sh
restart: unless-stopped
networks:
- default
depends_on:
- app
env_file:
- docker.app.env
volumes:
- ./storage/logs:/var/www/application/logs
- ./storage/backup:/var/www/backup
- ./storage/updates:/var/www/updates
- ./storage/uploads:/var/www/uploads
ports:
- 80:80
cron:
build: .
command: /start-cron.sh
restart: unless-stopped
networks:
- default
- internal_network
depends_on:
- mariadb
env_file:
- docker.app.env
- docker.db.env
volumes:
- ./storage/logs:/var/www/application/logs
- ./storage/backup:/var/www/backup
- ./storage/updates:/var/www/updates
- ./storage/uploads:/var/www/uploads
mariadb:
restart: unless-stopped
image: mariadb:10.10
networks:
- internal_network
env_file: docker.db.env
volumes:
- ./.mariadb:/var/lib/mysql
networks:
default:
internal_network:
internal: true