-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
107 lines (102 loc) · 2.7 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
version: "3"
services:
# volumes:
# database_volumes:
# external: true
# name: [ volume-name ]
redis:
container_name: redis
image: redis
ports:
- "6379:6379"
restart: always
mysql-db:
container_name: mysql-db
image: mysql
environment:
MYSQL_DATABASE: userdb
# MYSQL_USER: user
# MYSQL_PASSWORD: userpwd
MYSQL_ROOT_HOST: '%'
MYSQL_ROOT_PASSWORD: rootpwd
command:
- --default-authentication-plugin=mysql_native_password
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --skip-character-set-client-handshake
expose:
- "3303"
# volumes:
# - ./backups:/home/backups
volumes:
- ./db/mysql/data:/var/lib/mysql
- ./db/mysql/config:/etc/mysql/conf.d
- ./db/mysql/init:/docker-entrypoint-initdb.d
ports:
- "3303:3306"
restart: always
application:
container_name: application
env_file:
.env.dev
build: ./pocketpt
depends_on:
- mysql-db
- redis
expose:
- "8080"
ports:
- "8080:8080"
restart: always
# prometheus:
# image: prom/prometheus:latest
# volumes:
# - ./prometheus.yml:/etc/prometheus/prometheus.yml
# command:
# - '--config.file=/etc/prometheus/prometheus.yml'
# ports:
# - "9090:9090"
#
# grafana:
# image: grafana/grafana:latest
# ports:
# - "3000:3000"
# volumes:
# - ./grafana/provisioning:/etc/grafana/provisioning
# depends_on:
# - prometheus
# environment:
# - GF_SECURITY_ADMIN_PASSWORD=admin # 원하는 비밀번호로 변경하세요.
# - GF_PATHS_PROVISIONING=/etc/grafana/provisioning
# chat-db:
# container_name: chat-db
# image: mysql
# environment:
# MYSQL_DATABASE: chatdb
# # MYSQL_USER: user
# # MYSQL_PASSWORD: userpwd
# MYSQL_ROOT_HOST: '%'
# MYSQL_ROOT_PASSWORD: rootpwd
# command:
# - --default-authentication-plugin=mysql_native_password
# - —character-set-server=utf8mb4
# - —collation-server=utf8mb4_unicode_ci
# - —skip-character-set-client-handshake
# expose:
# - "3303"
# volumes:
# - ./backups:/home/backups
# ports:
# - "3303:3306"
# restart: always
#
# chat-server:
# container_name: chat-server
# build: ./springboot-chat-server
# depends_on:
# - chat-db
# environment:
# SPRING_DATASOURCE_URL: jdbc:mysql://mysql-db:3306/chatdb?useSSL=false&autoReconnect=true&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
# SPRING_DATASOURCE_USERNAME: root
# SPRING_DATASOURCE_PASSWORD: rootpwd
# restart: always