-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 787 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 787 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
46
47
48
49
version: '3'
services:
mysql:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: railway
ports:
- "3306:3306"
networks:
- backend_network
backend:
build: ./backend
ports:
- "5001:5001"
environment:
- DB_HOST=mysql
- DB_USER=root
- DB_PASSWORD=root
- DB_NAME=railway
- DB_PORT=3306
depends_on:
- mysql
networks:
- backend_network
frontend:
build: ./frontend
ports:
- "3000:3000"
networks:
- backend_network
nginx:
build:
context: .
dockerfile: Dockerfile.nginx
ports:
- "80:80"
depends_on:
- backend
- frontend
networks:
- backend_network
networks:
backend_network: