-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (65 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
70 lines (65 loc) · 1.49 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
version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: meteo-mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: meteo_root_pass
MYSQL_DATABASE: meteo_app
ports:
- "3307:3306"
volumes:
- mysql_data:/var/lib/mysql
networks:
- meteo-network
backend:
build: ./backend
container_name: meteo-backend
restart: unless-stopped
ports:
- "5001:5001"
environment:
- NODE_ENV=development
- PORT=5001
- DB_HOST=mysql
- DB_PORT=3306
- DB_USER=${DB_USER:-root}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME:-meteo_app}
- VISUAL_CROSSING_API_KEY=${VISUAL_CROSSING_API_KEY}
- OPENWEATHER_API_KEY=${OPENWEATHER_API_KEY}
- METEO_ANTHROPIC_API_KEY=${METEO_ANTHROPIC_API_KEY}
- JWT_SECRET=${JWT_SECRET}
- JWT_REFRESH_SECRET=${JWT_REFRESH_SECRET}
volumes:
- ./backend:/app
- ./database:/database
- /app/node_modules
depends_on:
- mysql
networks:
- meteo-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: meteo-frontend
restart: unless-stopped
ports:
- "3000:3000"
environment:
- WATCHPACK_POLLING=true
- CHOKIDAR_USEPOLLING=true
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
networks:
- meteo-network
volumes:
mysql_data:
networks:
meteo-network:
driver: bridge