-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
64 lines (57 loc) · 1.5 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
version: "3.7"
services:
mysql_db:
platform: linux/x86_64
image: mysql:latest
restart: always
command:
- --lower_case_table_names=1
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
container_name: mysql-bank
ports:
- "3307:3306"
environment:
- MYSQL_DATABASE=golf
- MYSQL_ROOT_PASSWORD=1234
- TZ=Asia/Seoul
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_DATABASE=bank
- MYSQL_USER=nokt
- MYSQL_PASSWORD=1234
volumes:
- /Users/nogyeongtae/Shared/data/golf-mysql:/var/lib/mysql
redis:
image: redis:latest
command: redis-server --port 6379
container_name: redis
hostname: redis
labels:
- "name=redis"
- "mode=standalone"
ports:
- "26379:6379"
volumes:
- /Users/nogyeongtae/Shared/data/golf-redis:/var/lib/redis
rabbitmq:
image: rabbitmq:3.9.5-management
ports:
- "5672:5672"
- "15672:15672"
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/mnesia/
- ./rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
environment:
RABBITMQ_DEFAULT_USER: "nokt"
RABBITMQ_DEFAULT_PASS: "1234"
app:
image: ilgolf/bank:latest
container_name: bank
environment:
- 'SECRET_KEY=c2lsdmVybmluZS10ZWNoLXNwcmluZy1ib290LWp3dC10dXRvcmlhbC1zZWNyZXQtc2lsdmVybmluZS10ZWNoLXNwcmluZy1ib290LWp3dC10dXRvcmlhbC1zZWNyZXQK'
ports:
- "8083:8091"
depends_on:
- mysql_db
- redis
- rabbitmq