-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.yml
43 lines (36 loc) · 977 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
version: "2"
services:
# Change this name ( ximdex: ) for your desired host name, for example ( ximdex.mydomain.com: )
ximdex:
image: ximdex/nginx-php:php7
environment:
WEB_DOCUMENT_ROOT: /var/www/html
volumes:
- ./:/var/www/html
links:
- db
# Exposing port 80
ports:
- 80:80
db:
image: "mariadb:10.3"
# image: "mysql:5.7"
# Path where MySQL data will be
volumes:
- .data/db:/var/lib/mysql
- ./docker/db.cnf:/etc/mysql/conf.d/db.cnf
# The first time, it creates a Database called ximdex with user ximdex, modify it if you are in production
environment:
MYSQL_ROOT_PASSWORD: ximdex
MYSQL_USER: ximdex
MYSQL_PASSWORD: ximdex
MYSQL_DATABASE: ximdex
# Only if you want to expose your MySQL
# ports:
# - 3306:3306
composer:
restart: 'no'
image: composer:latest
command: install --no-dev
volumes:
- ./:/app