-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local.yaml
68 lines (65 loc) · 1.6 KB
/
docker-compose-local.yaml
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
services:
app:
container_name: silverithm-dispatch
build: .
volumes:
- ./logs:/logs
ports:
- "8081:8080"
deploy:
resources:
limits:
cpus: '4.0'
environment:
LOG_PATH: /logs
SPRING_DATASOURCE_URL: ${MYSQL_PROD_URL}
SPRING_DATASOURCE_USERNAME: ${MYSQL_USER}
SPRING_DATASOURCE_PASSWORD: ${MYSQL_PASSWORD}
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_RABBITMQ_PORT: 5672
SPRING_RABBITMQ_USERNAME: ${RABBITMQ_USER}
SPRING_RABBITMQ_PASSWORD: ${RABBITMQ_PASSWORD}
JAVA_OPTS: >
-XX:MaxRAMPercentage=80.0
-XX:InitialRAMPercentage=70.0
-XX:+UseG1GC
-XX:ParallelGCThreads=10
-XX:ConcGCThreads=2
-XX:MaxGCPauseMillis=200
restart: always
networks:
- silverithm_network
- shared_network
depends_on:
- db
db:
container_name: silverithm-dispatch-db
image: mysql:8.3
environment:
MYSQL_DATABASE: ${MYSQL_NAME}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
ports:
- "3308:3306"
volumes:
- db-data:/var/lib/mysql
restart: always
networks:
- silverithm_network
command: [ 'mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci' ]
redis:
container_name: silverithm_redis2
image: redis
ports:
- "6380:6379"
restart: always
networks:
- silverithm_network
volumes:
db-data:
networks:
silverithm_network:
shared_network:
name: rabbitmq_network
external: true