forked from heyimjustalex/TagMedX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (67 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
72 lines (67 loc) · 1.38 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.9"
services:
phpmyadmin:
container_name: phpmyadmin_TagMedX
image: phpmyadmin:5.2.1
restart: always
ports:
- 8081:80
environment:
- PMA_ARBITRARY=1
networks:
- network
db:
image: mysql:8.1.0
container_name: db_TagMedX
restart: always
environment:
MYSQL_DATABASE: 'db'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '3306:3306'
volumes:
- DB:/var/lib/mysql
- ./DB/setup.sql:/docker-entrypoint-initdb.d/setup.sql
networks:
- network
backend:
container_name: backend_TagMedX
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- ./backend/:/app:ro
- images:/images:rw
ports:
- 8000:8000
environment:
- WATCHFILES_FORCE_POLLING=true
- DB_USER=user
- DB_PASSWORD=password
- DB_HOST=db_TagMedX
- DB_PORT=3306
- DB_NAME=db
networks:
- network
restart: on-failure
# frontend:
# container_name: frontend_TagMedX
# build:
# context: ./frontend
# dockerfile: Dockerfile
# volumes:
# - ./frontend/src:/app/src
# - /app/node_modules
# environment:
# NODE_ENV: development
# ports:
# - 80:3000
# networks:
# - network
volumes:
DB:
images:
networks:
network: