forked from MohamedOussama1/GIH
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (94 loc) · 2.37 KB
/
Copy pathdocker-compose.yml
File metadata and controls
97 lines (94 loc) · 2.37 KB
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
91
92
93
94
95
96
97
version: '3.3'
services:
app:
build : .
ports:
- "8081:8081"
# environment:
# MYSQL_HOST: mysql
# MYSQL_USER: root
# MYSQL_PASSWORD: <your-password>
# MYSQL_DB: todos
db:
image: mysql:5.7
restart: always
command: "--default-time-zone=+00:00"
# --max-allowed-packet=1073741824
# --symbolic-links=0
# --explicit_defaults_for_timestamp=1
#--character-set-server=utf8
#--collation-server=utf8_bin
#--max_connections=151
#--long_query_time=10
#--max_allowed_packet=2048M
#
#--tmp_table_size=10M
#--thread_cache_size=10
#--myisam_max_sort_file_size=100G
#--myisam_sort_buffer_size=12M
#--key_buffer_size=8M
#--read_buffer_size=24K
#--read_rnd_buffer_size=256K
#--innodb_flush_log_at_trx_commit=1
#--innodb_log_buffer_size=16M
#--innodb_buffer_pool_size=128M
#--innodb_log_file_size=48M
#--innodb_thread_concurrency=17
#--innodb_autoextend_increment=64
#
#--innodb_concurrency_tickets=5000
#
#--innodb_old_blocks_time=1000
#
#--innodb_stats_on_metadata=0
#
#--innodb_file_per_table=1
#
#--innodb_checksum_algorithm=0
#--back_log=80
#--flush_time=0
#--join_buffer_size=256K
#--max_allowed_packet=64M
#--max_connect_errors=100
#--open_files_limit=8161
#
#--sort_buffer_size=256K
#
#--table_definition_cache=2000
#
#--binlog_row_event_max_size=8K
#
#--innodb_log_buffer_size=32M
#--innodb_log_file_size=2GB
#
#--query-cache-size=8M
#--query-cache-type=1
#--query_cache_limit=8M
#
#--join-buffer-size=8M
#--table-definition-cache=1024
#
#--open-files-limit=4096
#
#
#--connect_timeout=120000
#--net_read_timeout=120000
#--net_write_timeout=120000"
#
environment:
MYSQL_DATABASE: 'gih'
MYSQL_USER: 'root'
MYSQL_PASSWORD: 'root'
MYSQL_ROOT_PASSWORD: 'root'
ports:
# <Port exposed> : <MySQL Port running inside container>
- '3306:3306'
expose:
# # Opens port 3306 on the container
- '3306'
# # Where our data will be persisted
volumes:
- my-db:/var/lib/mysql
# Names our volume
volumes:
my-db: