Skip to content

Commit

Permalink
make it clear that only after the systems are init
Browse files Browse the repository at this point in the history
  • Loading branch information
proditis committed Aug 21, 2023
1 parent 0aac516 commit eb7a516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/DOCKER-COMPOSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Once the initialization process completes, run the following command to connect
docker exec -it echoctfred_db bash -c "mysql < /etc/mysql-init.sql"
```

This command will have to be run every time the database server stops or respawned by eg `docker-compose down`. You can make the change permanent by appending `, "--init_file=/etc/mysql-init.sql"` to the db `command` parameters before the closing bracket `]`.
This command will have to be run every time the database server stops or respawned by eg `docker-compose down` and only once the systems are fully initialized. You can make the change permanent by appending `, "--init_file=/etc/mysql-init.sql"` to the db `command` parameters before the closing bracket `]`.
```yaml
command: ["mysqld","--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci","--skip-character-set-client-handshake", "--init_file=/etc/mysql-init.sql"]
```
Expand Down

0 comments on commit eb7a516

Please sign in to comment.