-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·56 lines (52 loc) · 1.56 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
version: "3.8"
services:
mysql:
image: mariadb
command: --default-authentication-plugin=mysql_native_password
container_name: mysql-opencart
restart: always
environment:
MYSQL_USER: opencart
MYSQL_PASSWORD: opencart
MYSQL_ROOT_PASSWORD: 1234
volumes:
- ./docker/mysql:/var/lib/mysql
networks:
- opencart-network
ports:
- "3307:3306"
php:
build:
dockerfile: php.dockerfile
context: ./docker/
container_name: php-opencart
volumes:
- ./:/html
- ./docker/logs/xdebug:/logs/xdebug
- ./docker/config/php/custom.conf:/usr/local/etc/php-fpm.d/zz-custom.conf
- ./docker/config/php/xdebug.ini:/usr/local/etc/php/conf.d/zz-xdebug.ini
- ./docker/logs/php-fpm/:/tmp/xdebug_log
depends_on:
- mysql
networks:
- opencart-network
nginx:
image: nginx:latest
container_name: nginx-opencart
restart: always
ports:
- "80:80"
volumes:
- ./:/html
- ./docker/logs/nginx:/logs/nginx
- ./docker/config/nginx/xdebug:/etc/nginx/xdebug
- ./docker/config/nginx/hosts:/etc/nginx/hosts
- ./docker/config/nginx/init.conf:/etc/nginx/conf.d/default.conf
networks:
- opencart-network
depends_on:
- php
networks:
opencart-network:
name: opencart
driver: bridge