aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdocker-compose.yml15
1 files changed, 13 insertions, 2 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 9624bc9..1e13c9e 100755
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -6,10 +6,21 @@ services:
context: .
dockerfile: Dockerfile
image: jwansek/smallytchannelbot
- network_mode: host
+ networks:
+ - db-network
+ external_links:
+ - mariadb:mysql
cron:
build:
context: .
dockerfile: ./onceaday/Dockerfile
image: jwansek/smallytchannelbotoad
- network_mode: host \ No newline at end of file
+ networks:
+ - db-network
+ external_links:
+ - mariadb:mysql
+
+networks:
+ db-network:
+ external:
+ name: mariadb