-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (34 loc) · 924 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (34 loc) · 924 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
services:
mysql: # Container/Server/ComputerName on the Docker network
build:
context: ./mysql
dockerfile: Dockerfile
image: dev-mysql
environment:
MYSQL_ROOT_PASSWORD: supersecretpassw0rd
ports:
- "3307:3306"
fastapi: # Container/Server/ComputerName on the Docker network
build:
context: ./fastapi
dockerfile: Dockerfile
image: dev-fastapi
ports:
- "8000:8000"
depends_on:
- mysql
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
nextjs: # Container/Server/ComputerName on the Docker network
build:
context: ./nextjs
dockerfile: Dockerfile
image: dev-nextjs
volumes:
- ./nextjs:/app
# These allow us to do hot rebuilding of the Next.js app
- /app/node_modules
- /app/.next
ports:
- "3000:3000"
depends_on:
- fastapi