-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (71 loc) · 1.85 KB
/
docker-compose.yml
File metadata and controls
78 lines (71 loc) · 1.85 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
73
74
75
76
77
78
version: '3.8'
services:
wise-redis:
image: redis:7
container_name: wise-redis
wise-mysql:
platform: linux/x86_64
image: mysql:8
container_name: wise-mysql
environment:
- MYSQL_ROOT_PASSWORD=iamroot
- MYSQL_DATABASE=wise_database
- MYSQL_USER=wiseuser
- MYSQL_PASSWORD=wisepass
volumes:
- './docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d'
- './data:/var/lib/mysql'
wise-api:
image: wiseberkeley/wise-api-dev:latest
container_name: wise-api
expose:
- '5005'
depends_on:
- wise-redis
- wise-mysql
ports:
- '5005:5005'
- '8080:8080'
volumes:
- '../WISE-API:/app'
command: >
bash -c '/app/create-application-dockerdev-properties-if-necessary.sh &&
mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5005" -Dspring-boot.run.profiles=dockerdev'
wise-client:
image: wiseberkeley/wise-client-dev:latest
container_name: wise-client
depends_on:
- wise-api
ports:
- '4200:4200'
volumes:
- '../WISE-Client:/app'
wise-client-test:
image: wiseberkeley/wise-client-dev:latest
container_name: wise-client-test
command: npm test -- --source-map=true --watch=true
expose:
- '9876'
ports:
- '9876:9876'
volumes:
- '../WISE-Client:/app'
profiles:
- wise-client-test
wise-client-build-prod:
image: wiseberkeley/wise-client-dev:latest
container_name: wise-client-build-prod
command: npm run build-prod
volumes:
- '../WISE-Client:/app'
profiles:
- wise-client-build-prod
wise-nginx:
image: nginx:1.26
container_name: wise-nginx
depends_on:
- wise-client
ports:
- '80:80'
volumes:
- '${PWD}/nginx/conf.d:/etc/nginx/conf.d'