-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1.2 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
version: '3.8'
services:
nginx:
build:
context: .
dockerfile: nginx.dockerfile
image: uniengine/nginx
restart: unless-stopped
depends_on:
- php
ports:
- ${WEB_PORT:-80}:80
volumes:
- /etc/localtime:/etc/localtime:ro
- ./docker/config.php:/var/www/html/config.php
- ./docker/constants.php:/var/www/html/includes/constants.php
- shared_tmp:/var/www/html/tmp
- shared_cache:/var/www/html/cache
php:
build:
context: .
dockerfile: php.dockerfile
image: uniengine/php
restart: unless-stopped
depends_on:
- db
volumes:
- /etc/localtime:/etc/localtime:ro
- ./docker/config.php:/var/www/html/config.php
- ./docker/constants.php:/var/www/html/includes/constants.php
- shared_tmp:/var/www/html/tmp
- shared_cache:/var/www/html/cache
db:
image: mariadb:10
restart: unless-stopped
command:
- --sql-mode=
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD:-uniengine}
MARIADB_DATABASE: ${MARIADB_DATABASE:-uniengine}
volumes:
- /etc/localtime:/etc/localtime:ro
- ./docker/data:/var/lib/mysql
volumes:
shared_tmp:
shared_cache: