-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
128 lines (106 loc) · 3.38 KB
/
docker-compose-dev.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: "3.4"
services:
dapp-rabbitmq:
image: rabbitmq:management
ports:
- 15672:5672
- 25672:15672
networks:
- deployapp_net
dapp-redis:
image: redis
environment:
REDIS_PASSWORD: password
ports:
- 16379:6379
networks:
- deployapp_net
dapp-db:
image: postgres:latest
volumes:
- postgres:/var/lib/postgresql/data
- ./docker-postgresql-multiple-databases:/docker-entrypoint-initdb.d
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_MULTIPLE_DATABASES: deployapp_dev_1,deployapp_storage_dev_1
ports:
- 15432:5432
networks:
- deployapp_net
dapp-backend:
build:
context: deployapp-backend
dockerfile: ../Dockerfile-dapp-backend
environment:
SPRING_PROFILES_ACTIVE: dev
SPRING_CONFIG_LOCATION: file:///config/
volumes:
- deployapp-backend-sync:/app
- ./deployapp-backend-config/:/config
working_dir: /app
command: ./gradlew bootRun -PjvmArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5010"
ports:
- 18080:8080
- 18082:8082
- 15010:5010
networks:
- deployapp_net
dapp-storage-service:
build:
context: deployapp-storage-service
dockerfile: ../Dockerfile-dapp-storage-service
environment:
# PLEASE CHANGE_THIS
GPR_USERNAME: CHANGE_THIS
GPR_PAT: CHANGE_THIS
SPRING_PROFILES_ACTIVE: dev
SPRING_CONFIG_LOCATION: file:///config/
volumes:
- deployapp-storage-service-sync:/app
- ./deployapp-storage-service-config/:/config
working_dir: /app
command: ./gradlew bootRun -PjvmArgs="-XX:+UseCodeCacheFlushing -XX:ReservedCodeCacheSize=128m -XX:StartAggressiveSweepingAt=50 -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -Xdebug -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.port=20010 -Dcom.sun.management.jmxremote.rmi.port=20010 -Djava.rmi.server.hostname=127.0.0.1 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5010"
ports:
- 19080:8080
- 16010:5010
- 20010:20010
networks:
- deployapp_net
dapp-web:
image: nginx:alpine
volumes:
- ./deployapp-web-config/nginx.conf:/etc/nginx/nginx.conf
- ./deployapp-web-config/certs:/etc/nginx/certs
ports:
- "12345:12345"
- "12346:12346"
networks:
- deployapp_net
dapp-frontend:
build:
context: deployapp-frontend
dockerfile: ../Dockerfile-dapp-frontend
volumes:
- deployapp-frontend-sync:/node/app
- ./deployapp-frontend-config:/node/app/environments
- /node/app/node_modules
# proxy this through dapp-web nginx too because of HSTS during oauth2 redirect
# https://stackoverflow.com/questions/47207364/safari-is-forcing-https-on-everything-when-i-dont-want-it-to
# ports:
# - "3000:3000"
working_dir: /node/app
command: bash -c "bash post_install.sh && WDS_SOCKET_PORT=0 npm run start:dev"
networks:
- deployapp_net
networks:
deployapp_net:
volumes:
postgres:
external: false
deployapp-backend-sync:
external: true
deployapp-storage-service-sync:
external: true
deployapp-frontend-sync:
external: true