-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (66 loc) Β· 2.05 KB
/
docker-compose.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
# μ€ν λ°©λ²
# νμΌμ΄ μλ λλ ν 리μμ docker-compose up -d λ‘ μ€νν©λλ€. κ°λ°μ© μλ²λ€μ ν λ²μ μ€νν΄ μ€λλ€.
# μ’
λ£λ docker-compose down -v.
version: "3" # νμΌ κ·κ²© λ²μ
services: # μ΄ νλͺ© λ°μ μ€ννλ €λ 컨ν
μ΄λ λ€μ μ μ
db: # μλΉμ€ λͺ
image: mysql:5.7 # μ¬μ©ν μ΄λ―Έμ§
container_name: mysql # 컨ν
μ΄λ μ΄λ¦ μ€μ
ports:
- "3306:3306" # μ κ·Ό ν¬νΈ μ€μ (컨ν
μ΄λ μΈλΆ:컨ν
μ΄λ λ΄λΆ)
environment: # -e μ΅μ
- TZ=Asia/Seoul
- MYSQL_ROOT_PASSWORD=1234 # MYSQL ν¨μ€μλ μ€μ μ΅μ
command: # λͺ
λ Ήμ΄ μ€ν
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
volumes:
- "./initCmd:/docker-entrypoint-initdb.d"
redis:
image: redis
container_name: redis
command: redis-server --port 6379
restart: always
ports:
- 6379:6379
mongo:
image: mongo
container_name: mongo
restart: always
ports:
- 27017:27017
environment:
- TZ=Asia/Seoul
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: 1234
# keycloak:
# image: jboss/keycloak:12.0.4
# container_name: keycloak
# environment:
# - DB_VENDOR=h2
# - KEYCLOAK_USER=admin
# - KEYCLOAK_PASSWORD=admin
# - KEYCLOAK_IMPORT=/opt/jboss/keycloak/realm-export.json
## expose: 8180
# ports:
# - 8180:8180
## depends_on:
## - mysql
# volumes:
# - ./initCmd/realm-export.json:/opt/jboss/keycloak/realm-export.json
# - ./initCmd/oauth-0.0.1-SNAPSHOT-all.jar:/opt/jboss/keycloak/standalone/deployments/oauth-0.0.1-SNAPSHOT-all.jar:z
# command:
# - "-Djboss.socket.binding.port-offset=100"
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- 5672:5672
- 15672:15672
- 61613:61613
volumes:
- ./initCmd/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
command: bash -c "
rabbitmq-plugins --offline enable rabbitmq_stomp;
rabbitmq-server
"