Ajout de l'ORM

Co-authored-by: S0dy <msorin@msorin.com>
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2020-04-29 11:42:50 +02:00
parent 215383a526
commit 5e1987c6ba
15 changed files with 358 additions and 6 deletions

View File

@ -0,0 +1,16 @@
version: "3"
services:
tcgdex:
volumes:
- ../:/home/tcgdex
command: "yarn dev"
ports:
- "3000:3000"
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8081:80
networks:
- network
env_file:
- .env

View File

@ -0,0 +1,6 @@
version: "3"
services:
tcgdex:
restart: "always"
ports:
- "127.0.0.1:4567:3000"

View File

@ -0,0 +1,5 @@
version: "3"
services:
tcgdex:
ports:
- "3000:3000"

26
docker/docker-compose.yml Normal file
View File

@ -0,0 +1,26 @@
version: "3"
services:
tcgdex:
build:
context: ../
dockerfile: Dockerfile
networks:
- network
depends_on:
- db
env_file:
- .env
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
env_file:
- .env
networks:
- network
volumes:
- ./.storage/mysql/:/var/lib/mysql
networks:
network:
external: false