Skip to content

Commit 5cd88f4

Browse files
committed
更新mysql5 mac芯片M1-M4
1 parent f3884b3 commit 5cd88f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker-compose.sample.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,16 @@ services:
154154
TZ: "$TZ"
155155

156156
mysql5:
157+
# platform: linux/amd64 # 指定使用 amd64 平台,mac芯片m1-m4需要打开
157158
image: mysql:${MYSQL5_VERSION}
158-
container_name: mysql5
159+
container_name: testmysql5
159160
ports:
160161
- "${MYSQL5_HOST_PORT}:3306"
161162
volumes:
162163
- ${MYSQL5_CONF_FILE}:/etc/mysql/conf.d/mysql.cnf:ro
163164
- ${DATA_DIR}/mysql5:/var/lib/mysql/:rw
164165
- ${MYSQL5_LOG_DIR}:/var/log/mysql/:rw
165-
restart: always
166+
166167
networks:
167168
- default
168169
environment:

0 commit comments

Comments
 (0)