-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (40 loc) · 781 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (40 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3.7'
services:
mysql:
container_name: mysql
ports:
- '3306:3306'
image: mysql
restart: always
environment:
MYSQL_DATABASE: prisma
MYSQL_ROOT_PASSWORD: prisma
volumes:
- mysql:/var/lib/mysql
networks:
- mysql-compose-network
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- mysql-compose-network
frontend:
container_name: frontend
ports:
- '3000:3000'
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- .:/app
- /app/node_modules
- /app/.next
networks:
- mysql-compose-network
networks:
mysql-compose-network:
driver: bridge
volumes: #define our mysql volume used above
mysql: