-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshared.docker-compose.yml
119 lines (109 loc) · 2.42 KB
/
shared.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
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
version: "3.9"
services:
app:
image: node:17-alpine
volumes:
- .:/app
working_dir: /app
restart: unless-stopped
entrypoint: npm
command: run dev
depends_on:
- etcd
- nats
- redis
- mysql
- postgresql
- rabbitmq
expose:
- 8080
ports:
- "8080:8080"
environment:
- NODE_ENV=local
- TZ=America/Sao_Paulo
- MOLECULER_CACHER=redis://redis:6379
- MOLECULER_REGISTRY=etcd3://etcd:2379
- MOLECULER_TRANSPORTER=nats://nats:4222
- RABBITMQ_CONNECTION_STRING=amqp://ff-cluster:secret@rabbitmq:5672
- MYSQL_CONNECTION_STRING=mysql://ff-cluster:secret@mysql:3306/ff-cluster
- POSTGRES_CONNECTION_STRING=postgresql://ff-cluster:secret@postgresql:5432/ff-cluster
nats:
image: bitnami/nats
expose:
- 4222
ports:
- 4222:4222
environment:
- TZ=America/Sao_Paulo
redis:
image: bitnami/redis
expose:
- 6379
ports:
- 6379:6379
environment:
- TZ=America/Sao_Paulo
- ALLOW_EMPTY_PASSWORD=yes
etcd:
image: bitnami/etcd
expose:
- 2379
ports:
- 2379:2379
environment:
- TZ=America/Sao_Paulo
- ALLOW_NONE_AUTHENTICATION=yes
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
mysql:
image: bitnami/mysql:5.7
volumes:
- ff_mysql:/bitnami/mysql/data
expose:
- 3306
ports:
- 3306:3306
environment:
- TZ=America/Sao_Paulo
- MYSQL_USER=ff-cluster
- MYSQL_DATABASE=ff-cluster
- MYSQL_PASSWORD=secret
- ROW_FORMAT=COMPRESSED
- ALLOW_EMPTY_PASSWORD=yes
postgresql:
image: bitnami/postgresql
volumes:
- ff_postgresql:/bitnami/mysql/data
expose:
- 5432
ports:
- 5432:5432
environment:
- TZ=America/Sao_Paulo
- POSTGRESQL_USERNAME=ff-cluster
- POSTGRESQL_DATABASE=ff-cluster
- POSTGRESQL_PASSWORD=secret
rabbitmq:
image: bitnami/rabbitmq
volumes:
- ff_rabbitmq:/bitnami
expose:
- 5672
- 15672
- 25672
ports:
- 5672:5672
- 15672:15672
- 25672:25672
environment:
- TZ=America/Sao_Paulo
- RABBITMQ_FORCE_BOOT=yes
- RABBITMQ_PASSWORD=secret
- RABBITMQ_ERL_COOKIE=secret
- RABBITMQ_SECURE_PASSWORD=yes
- RABBITMQ_USERNAME=ff-cluster
# volumes
volumes:
ff_mysql: {}
ff_rabbitmq: {}
ff_postgresql: {}