Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
version: '3.8'
version: "3.8"
services:

# Building and testing environment
dev:
build:
Expand Down Expand Up @@ -31,8 +30,7 @@ services:
- /:/host
- /var/run/docker.sock:/var/run/docker.sock
network_mode: "host"



# Example of running the same image with different intent
app2:
image: ghcr.io/growlf/toolbox:latest
Expand All @@ -41,4 +39,19 @@ services:
stdin_open: true
tty: true
command: ["/bin/bash"]


# Example of running a different image. This one is a MySQL server
db:
image: mysql
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
# (this is just an example, not intended to be a production configuration)
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: example

adminer:
image: adminer
restart: always
ports:
- 8080:8080