-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (63 loc) · 1.39 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
services:
hb:
build: .
container_name: hb-app
restart: always
ports:
- 80:80
expose:
- 80
networks:
- hb-network
environment:
DB_HOST: 'mysql-hb'
DB_USER: 'root'
DB_PWD: 'root'
DB_NAME: 'br.org.ipti.hb.boquim'
TAG_DB_NAME: 'cloc.tag.ong.br'
YII_DEBUG: 'true'
XDEBUG_CONFIG: remote_host=172.24.112.1 # wsl network ip
PHP_IDE_CONFIG: "serverName=xdebug-docker"
volumes:
- .:/app
- /docker/db
#- ./docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
# - ./docker/php/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
extra_hosts:
- host.docker.internal:host-gateway
mysql:
image: mysql:5.7
container_name: mysql-hb
restart: always
command: mysqld --sql_mode=""
ports:
- 3306:3306
expose:
- 3306
deploy:
resources:
limits:
cpus: '2'
memory: 1024M
reservations:
cpus: '1'
memory: 1GB
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: admin
MYSQL_PASSWORD: admin
volumes:
- ./docker/db:/var/lib/mysql
networks:
- hb-network
adminer:
image: adminer
restart: always
ports:
- 8088:8080
networks:
- hb-network
networks:
hb-network:
volumes:
db-volume: