Skip to content

Commit

Permalink
fix: docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Leoglme committed Jan 23, 2024
1 parent 27588e3 commit 54031cf
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 30 deletions.
14 changes: 10 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@ HOST=0.0.0.0
NODE_ENV=development
APP_KEY=9-gIvZy9IbX5DD-aky_jQ3lQJVqHtS6F
DRIVE_DISK=local
CACHE_VIEWS=false
PMA_HOST=db
PMA_USER=epitalk
PMA_PASSWORD=epitalk
DB_CONNECTION=mysql
MYSQL_HOST=host.docker.internal
MYSQL_ROOT_PASSWORD=epitalk
MYSQL_DATABASE=epitalk
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=adonis
MYSQL_PASSWORD=adonis
MYSQL_DATABASE=irc
MYSQL_USER=epitalk
MYSQL_PASSWORD=epitalk
COMPOSE_PROJECT_NAME=epitalk
MERCURE_URL=http://localhost:1405/.well-known/mercure
MERCURE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOlsiKiJdfX0.obDjwCgqtPuIvwBlTxUEmibbBf0zypKCNzNKP7Op2UM
SITE_NAME=Epitalk
4 changes: 2 additions & 2 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ PORT=5800
HOST=0.0.0.0
NODE_ENV=production
APP_KEY=
CACHE_VIEWS=false
DRIVE_DISK=local
CACHE_VIEWS=false
DB_CONNECTION=mysql
MYSQL_DATABASE=
MYSQL_HOST=
MYSQL_PORT=
MYSQL_USER=
MYSQL_PASSWORD=
MYSQL_DATABASE=
MERCURE_URL=http://localhost:1405/.well-known/mercure
MERCURE_TOKEN=
SITE_NAME=Epitalk
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 4 additions & 23 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,12 @@
version: '3.8'

services:
adonis_backend:
container_name: adonis_backend
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/home/node/app
- /home/node/app/node_modules
ports:
- "3333:3333"
depends_on:
- db
- phpmyadmin

db:
container_name: db
image: mariadb:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: irc
MYSQL_USER: adonis
MYSQL_PASSWORD: adonis
env_file:
- .env
ports:
- "3306:3306"
volumes:
Expand All @@ -33,10 +16,8 @@ services:
container_name: phpmyadmin
image: phpmyadmin/phpmyadmin
restart: always
environment:
PMA_HOST: db
PMA_USER: root
PMA_PASSWORD: root
env_file:
- .env
ports:
- "8080:80"

Expand Down

0 comments on commit 54031cf

Please sign in to comment.