-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
62 lines (58 loc) · 1.27 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
62 lines (58 loc) · 1.27 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
networks:
app-network:
driver: bridge
volumes:
mysql-data:
services:
db:
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
ports:
- "3306:3306"
networks:
- app-network
volumes:
- mysql-data:/var/lib/mysql
server:
build:
context: ./server
dockerfile: Dockerfile.dev
ports:
- "8080:8080"
volumes:
- ./server/src:/usr/src/app/src
environment:
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_DATABASE=${DB_DATABASE}
- SWAGGER_ENABLED=${SWAGGER_ENABLED}
- SERVER_PORT=${SERVER_PORT}
- SERVER_PROTOCOL=${PROTOCOL}
- SERVER_HOST=${HOST}
- CLIENT_URL=${CLIENT_URL}
- JWT_SECRET=${JWT_SECRET}
depends_on:
- db
networks:
- app-network
client:
build:
context: ./client
dockerfile: Dockerfile
ports:
- "8081:8081"
volumes:
- ./client/src:/usr/src/app/src
environment:
- VITE_CLIENT_PORT=${CLIENT_PORT}
- VITE_SERVER_URL=${SERVER_URL}
depends_on:
- server
networks:
- app-network