Skip to content

Commit

Permalink
Updated Docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
GreepTheSheep committed Dec 11, 2023
1 parent b229c49 commit cb142d8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
13 changes: 0 additions & 13 deletions Dockerfile

This file was deleted.

32 changes: 23 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.8"
version: "3.9"
services:
mariadb:
image: mariadb
Expand All @@ -15,15 +15,27 @@ services:
test: ["CMD", "mariadb-admin" ,"ping", "--host=localhost", "--user=root", "--password=${DB_PASS}"]
timeout: 20s
retries: 10
discordbot:
build:
context: .
dockerfile: Dockerfile
tags:
- "discord-tmio"
labels:
- "com.centurylinklabs.watchtower.enable=false"

phpmyadmin:
image: phpmyadmin
restart: always
ports:
- 8002:80
environment:
PMA_HOST: mariadb
PMA_PORT: 3306
#PMA_USER: root
#PMA_PASSWORD: ${DB_PASSWORD}
depends_on:
mariadb:
condition: service_healthy

discord:
image: node:lts
restart: always
working_dir: /home/node/app
volumes:
- ./:/home/node/app
depends_on:
mariadb:
condition: service_healthy
Expand All @@ -36,6 +48,8 @@ services:
DB_USER: root
DB_PASS: ${DB_PASS}
DB_NAME: discord-tmio
NODE_ENV: production
command: node ./src/index.js

volumes:
database:
Expand Down

0 comments on commit cb142d8

Please sign in to comment.