-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
64 lines (58 loc) · 1.3 KB
/
docker-compose.yml
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
services:
backend:
build:
context: ./backend
dockerfile: ./Dockerfile
ports:
- 5173:5173
volumes:
- ./backend/.env:/app/.env
- ./backend/src/appointment:/app/appointment
environment:
- DATABASE_URL=mysql+mysqldb://tba:tba@mysql:3306/appointment
depends_on:
mysql:
condition: service_healthy
frontend:
build: ./frontend
volumes:
- './frontend:/app'
- '/app/node_modules'
ports:
- 8080:8080
environment:
- WATCHPACK_POLLING=true
mysql:
image: mysql:8
volumes:
- db:/var/lib/mysql
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=appointment
- MYSQL_USER=tba
- MYSQL_PASSWORD=tba
- MYSQL_RANDOM_ROOT_PASSWORD=true
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
start_period: 5s
interval: 5s
timeout: 5s
retries: 55
redis:
image: redis/redis-stack
volumes:
- cache:/data
ports:
- 6379:6379 # Redis exposed on port 6379
- 8070:8001 # Insights exposed on port 8070
mailpit:
image: axllent/mailpit
environment:
- MP_SMTP_AUTH_ALLOW_INSECURE=true
ports:
- 8025:8025 # Web UI
- 1025:1024 # SMTP
volumes:
db: {}
cache: {}