-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 911 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (39 loc) · 911 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
version: "3.1"
services:
frontend:
container_name: goreact-frontend
build:
context: frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./frontend:/app
backend:
container_name: goreact-backend
build:
context: backend
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./backend:/app
mysql:
image: mysql:latest
container_name: goreact-mysql
restart: on-failure
# cpus: "1.0"
# mem_limit: "1g"
environment:
MYSQL_HOST: "localhost"
MYSQL_DATABASE: "gofiber_react_app"
MYSQL_USER: "gofiber_react"
MYSQL_PASSWORD: "VyLg8R6BzS5KVwMcDK"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_PASSWORD: "6MpU5tQaVXvBFqSLDFN25v9zzgRbcvDK"
ports:
- "53309:3306"
volumes:
- goreact-mysql_data:/var/lib/mysql
volumes:
goreact-mysql_data: