ardit
12/28/2018, 5:21 PMHarshit
12/28/2018, 5:37 PMhost.docker.internal
to refer you host machine in dockerHarshit
12/28/2018, 5:37 PMHarshit
12/28/2018, 5:43 PMconfig.vm.network "forwarded_port", guest: 3306, host: 3306
Harshit
12/28/2018, 5:43 PMhost.docker.internal
in docker-compose.yml file as host for you database and port as 3366
ardit
12/28/2018, 5:45 PMhost.docker.internal
first then 🙂
Thanks!Harshit
12/28/2018, 5:47 PMHarshit
12/28/2018, 5:47 PMHarshit
12/28/2018, 5:47 PMardit
12/29/2018, 7:57 AM<http://localhost:4466>
, the IDE is there but it never finish the loading whenever I open the schema or docs.Harshit
12/29/2018, 7:58 AMHarshit
12/29/2018, 7:58 AMardit
12/29/2018, 8:00 AMardit
12/29/2018, 8:00 AMardit
12/29/2018, 8:01 AMversion: '3'
services:
prisma:
image: prismagraphql/prisma:1.23
restart: always
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
databases:
mydbname:
connector: mysql
host: host.docker.internal
port: 3306
user: myuser
password: mypassword
migrations: true
# mysql:
# image: mysql:5.7
# restart: always
# ports:
# - "3306:3306"
# environment:
# MYSQL_ROOT_PASSWORD: prisma
# volumes:
# - mysql:/var/lib/mysql
# volumes:
# mysql:
ardit
12/29/2018, 8:01 AMHarshit
12/29/2018, 8:21 AMprisma deploy
a service firstardit
12/29/2018, 8:58 AMmydbname
. Instead it build its own database with name default@default
Harshit
12/29/2018, 8:58 AMardit
12/29/2018, 8:59 AMHarshit
12/29/2018, 8:59 AMardit
12/29/2018, 9:01 AMHarshit
12/29/2018, 9:01 AMardit
12/29/2018, 9:18 AM