forked from Glintt/gAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (62 loc) · 1.47 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
version: "3"
services:
# nginx:
# image: nginx:stable-alpine
# restart: always
# ports:
# - ${API_MANAGEMENT_PORT_EXT}:80
# - ${SOCKET_PORT_EXT}:${SOCKET_PORT}
# volumes:
# - ./nginx/sites-enabled:/etc/nginx/sites-enabled
backend:
restart: always
build:
context: ./api
env_file: .env
ports:
- ${API_MANAGEMENT_PORT_EXT}:${API_MANAGEMENT_PORT}
- ${SOCKET_PORT_EXT}:${SOCKET_PORT}
volumes:
- ./api/configs:/go/src/gAPIManagement/api/configs/
frontend:
build:
context: ./dashboard
env_file: .env
restart: always
ports:
- ${FRONTEND_PORT}:80
rabbitlistener:
restart: always
build:
context: ./api
dockerfile: Dockerfile-rabbitlistener
env_file: .env
volumes:
- ./api/configs:/go/src/gAPIManagement/api/configs/
rabbit:
restart: always
image: "rabbitmq:3-management"
hostname: "rabbit"
env_file: .env
ports:
- "${RABBITMQ_MANAGEMENT_PORT_EXT}:15672"
- "${RABBITMQ_PORT_EXT}:5672"
labels:
NAME: "rabbitmq"
elastic:
restart: always
image: elasticsearch:latest
env_file: .env
ports:
- "${ELASTICSEARCH_PORT_EXT}:9200"
- "${ELASTICSEARCH_ALT_PORT_EXT}:9300"
volumes:
- ./elasticsearch/storage/data:/usr/share/elasticsearch/data
mongodb:
image: mongo
restart: always
env_file: .env
volumes:
- ./data:/data/db
ports:
- "${MONGO_PORT_EXT}:27017"