-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
49 lines (44 loc) · 1.04 KB
/
docker-compose.yaml
File metadata and controls
49 lines (44 loc) · 1.04 KB
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.8"
services:
flask_backend:
container_name: flask_backend
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "5500:5500"
volumes:
- ./backend:/code
restart: always
react:
container_name: react
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./frontend/src:/app/src
restart: always
mysql:
container_name: database
image: mysql:latest
ports:
- "3306:3306"
volumes:
- ./database:/docker-entrypoint-initdb.d/:ro
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: ColocApp
phpmyadmin:
container_name: database_admin
image: phpmyadmin/phpmyadmin
ports:
- "8080:80"
restart: always
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_USER: root
PMA_PASSWORD: password