-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
134 lines (127 loc) · 3.65 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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
version: '3.8'
services:
db:
image: postgres:16
container_name: ${DB_NAME}
volumes:
- ./postgresdb:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USERNAME}
restart: always
ports:
- '${DB_PORT}:5432'
rabbitmq:
depends_on:
- db
image: rabbitmq:3.12.12-management
container_name: rabbitmq
hostname: rabbitmq
restart: always
ports:
- 5672:5672
- 15672:15672
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASS}
ENV: ${NODE_ENV}
email-service:
image: jaderodev/email-service:latest
restart: on-failure
depends_on:
- aup-backend
container_name: email-service
environment:
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_URL: ${DOCK_RABBITMQ_URL}
MAIL_SERVICE: ${MAIL_SERVICE}
MAILER_EMAIL: ${MAILER_EMAIL}
MAILER_SECRET_KEY: ${MAILER_SECRET_KEY}
WEBSERVICE_URL: ${WEBSERVICE_URL}
notification-service:
image: jaderodev/notification-service:latest
restart: on-failure
depends_on:
- aup-backend
container_name: notification-service
environment:
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_URL: ${DOCK_RABBITMQ_URL}
DATABASE_URL: ${DOCK_DATABASE_URL}
PORT: ${WS_SERVER_PORT}
JWT_SEED: ${JWT_SEED}
ports:
- ${WS_SERVER_PORT}:${WS_SERVER_PORT}
assistant-service:
image: jaderodev/assistant-service:latest
restart: on-failure
depends_on:
- aup-backend
container_name: assistant-service
environment:
SUPABASE_URL: ${SUPABASE_URL}
SUPABASE_PRIVATE_KEY: ${SUPABASE_PRIVATE_KEY}
OPENAI_API_KEY: ${OPENAI_API_KEY}
MONGO_DB_URL: ${MONGO_DB_URL}
PORT: ${ASSISTANT_PORT}
JWT_SEED: ${JWT_SEED}
RABBITMQ_URL: ${DOCK_RABBITMQ_URL}
NODE_ENV: ${NODE_ENV}
DOCUMENT_NAME: ${DOCUMENT_NAME}
ports:
- ${ASSISTANT_PORT}:${ASSISTANT_PORT}
aup-backend:
image: jaderodev/aup-backend:latest
restart: on-failure
depends_on:
rabbitmq:
condition: service_healthy
container_name: aup-backend
ports:
- ${PORT}:${PORT}
environment:
NODE_ENV: ${NODE_ENV}
PORT: ${PORT}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_USERNAME: ${DB_USERNAME}
JWT_SEED: ${JWT_SEED}
DATABASE_URL: ${DOCK_DATABASE_URL}
MAIL_SERVICE: ${MAIL_SERVICE}
MAILER_EMAIL: ${MAILER_EMAIL}
MAILER_SECRET_KEY: ${MAILER_SECRET_KEY}
WEBSERVICE_URL: ${WEBSERVICE_URL}
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_URL: ${DOCK_RABBITMQ_URL}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_REGION: ${AWS_REGION}
AWS_BUCKET: ${AWS_BUCKET}
AWS_BUCKET_URL: ${AWS_BUCKET_URL}
# proxy:
# build: ./nginx
# depends_on:
# - aup-backend
# container_name: aup-backend-proxy
# restart: always
# ports:
# - 80:80
# - 443:443
# volumes:
# - ./nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf:ro
# - ./nginx/passwd/:/etc/nginx/passwd:ro
# - ./nginx/letsencrypt/:/etc/letsencrypt/:ro
# - ./nginx/certificates/certs/:/etc/nginx/certs:ro
# - ./nginx/certificates/private/:/etc/nginx/private:ro
# - ./nginx/logs/:/var/log/nginx/