-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
92 lines (84 loc) · 2.01 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
services:
tag:
build: .
container_name: tag-app
restart: always
ports:
- 80:80
- 433:433
- 9001:9001
expose:
- 80
networks:
- tag-v3-network
environment:
HOST_DB_TAG: 'mysql'
USER_DB_TAG: 'root'
PWD_DB_TAG: 'root'
YII_DEBUG: 1
PHP_ENABLE_XDEBUG: 0
# XDEBUG_MODE: 'off'
SEDSP_URL: "https://homologacaointegracaosed.educacao.sp.gov.br"
volumes:
- .:/app
# - ./docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- /app/docker/mysql
- /app/vendor
- /app/app/vendor
- /app/assets
- /app/db
- /app/.git
# - ./docker/php/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
mysql:
image: mysql:5.7
container_name: mysql
restart: always
command: mysqld --sql_mode="" --max_allowed_packet=32505856
ports:
- 3306:3306
expose:
- 3306
deploy:
resources:
limits:
cpus: '2'
memory: 1024M
reservations:
cpus: '1'
memory: 1GB
environment:
MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: tag
MYSQL_USER: admin
MYSQL_PASSWORD: admin
volumes:
- ./docker/mysql/dbfiles:/var/lib/mysql
# - .\dump.sql:/docker-entrypoint-initdb.d/dump.sql
# - ./dump-data.sql:/docker-entrypoint-initdb.d/dump-data.sql
networks:
- tag-v3-network
adminer:
image: adminer
restart: always
ports:
- 8088:8080
networks:
- tag-v3-network
sass:
image: michalklempa/dart-sass
volumes:
- ./sass/scss:/sass
- ./sass/css:/css
entrypoint: ["/opt/dart-sass/sass", "--watch", "--no-source-map" ,"--style=compressed", "/sass:/css"]
bytebase:
image: bytebase/bytebase
ports:
- 8080:8080
environment:
- DATABASE_URL=mysql://root:root@mysql:3306
volumes:
- ./docker/bytebase-data:/data
networks:
tag-v3-network:
volumes:
db-volume: