Showing
1 changed file
with
4 additions
and
2 deletions
1 | version: "3.7" | 1 | version: "3.7" |
2 | services: | 2 | services: |
3 | mysql: | 3 | mysql: |
4 | + image: mysql:8.0.19 | ||
4 | container_name: mysql | 5 | container_name: mysql |
5 | ports: | 6 | ports: |
6 | - 3306:3306 | 7 | - 3306:3306 |
7 | - image: mysql:8.0.19 | 8 | + expose: |
9 | + - "3306" | ||
8 | restart: always | 10 | restart: always |
9 | environment: | 11 | environment: |
10 | MYSQL_DATABASE: $${MYSQL_DATABASE} | 12 | MYSQL_DATABASE: $${MYSQL_DATABASE} |
... | @@ -13,7 +15,7 @@ services: | ... | @@ -13,7 +15,7 @@ services: |
13 | - /var/lib/mysql | 15 | - /var/lib/mysql |
14 | prisma: | 16 | prisma: |
15 | links: | 17 | links: |
16 | - - mysql | 18 | + - "mysql" |
17 | depends_on: | 19 | depends_on: |
18 | - mysql | 20 | - mysql |
19 | container_name: prisma | 21 | container_name: prisma | ... | ... |
-
Please register or login to post a comment