-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (101 loc) · 2.29 KB
/
docker-compose.yml
File metadata and controls
110 lines (101 loc) · 2.29 KB
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
version: "3.9"
services:
backend:
image: backend
container_name: sm_backend
build:
context: ./backend/back-end
dockerfile: Dockerfile
restart: always
depends_on:
- redis
environment:
SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL}
MARIADB_USER: ${MARIADB_USER}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
OPENAI_KEY: ${OPENAI_KEY}
FROMNUMBER: ${FROMNUMBER}
APISECRET: ${APISECRET}
APIKEY: ${APIKEY}
PFID: ${PFID}
TEMPLATEID: ${TEMPLATEID}
BUCKET: ${BUCKET}
ACCESSKEY: ${ACCESSKEY}
SECRETKEY: ${SECRETKEY}
ports:
- "8080:8080"
volumes:
- ./backend/back-end:/app
networks:
- study_mate
redis:
container_name: redis
image: redis
restart: always
ports:
- "6379:6379"
networks:
- study_mate
frontend:
image: frontend
container_name: sm_frontend
build:
context: ./frontend
dockerfile: Dockerfile.prod
ports:
- "5173:5173"
volumes:
- ./frontend:/frontend
- ./frontend/build:/frontend/dist
- /frontend/node_modules
tty: true
stdin_open: true
networks:
- study_mate
rabbitmq:
hostname: rabbit
image: rabbitmq:3.9-management-alpine
container_name: rabbitmq
command:
- bash
- -c
- |
rabbitmq-plugins enable rabbitmq_web_stomp && rabbitmq-plugins enable rabbitmq_web_stomp_examples && rabbitmq-server
volumes:
- ./rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
ports:
- "5672:5672"
- "15672:15672"
- "61613:61613"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
networks:
- study_mate
nginx:
container_name: nginx
restart: unless-stopped
build:
context: ./nginx
ports:
- "80:80"
- "443:443"
expose:
- 80
- 443
volumes:
- ./frontend/build:/var/www/frontend
# - ./backend/static:/backend/static
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/certificate.pem:/etc/nginx/certificate.pem
- ./nginx/private.key:/etc/nginx/private.key
depends_on:
- backend
- frontend
networks:
- study_mate
volumes:
mariadb_data:
networks:
study_mate:
driver: bridge