-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.mini.yml
84 lines (76 loc) · 1.64 KB
/
docker-compose.prod.mini.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
version: '3.8'
networks:
linkopus-network:
external: false
driver: bridge
volumes:
mongodb_volume:
services:
linkopus-backend:
container_name: linkopus_backend
build:
context: ./backend
dockerfile: Dockerfile
environment:
- SERVER_PORT=${SERVER_PORT}
- NSQ_URL=${NSQ_URL}
- REDIS_URL=${REDIS_URL}
- MONGO_DB_URL=${MONGO_DB_URL}
networks:
- linkopus-network
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
restart: always
depends_on:
- "mongodb"
redis:
image: redis:6.0.6-alpine3.12
container_name: redis_master
networks:
- linkopus-network
ports:
- "${REDIS_PORT}:6379"
restart: always
nsqlookupd:
image: nsqio/nsq
container_name: nsqlookupd
command: /nsqlookupd
networks:
- linkopus-network
restart: always
ports:
- "4160:4160"
- "4161:4161"
nsqd:
image: nsqio/nsq
container_name: nsqd
command: /nsqd --lookupd-tcp-address=nsqlookupd:4160
networks:
- linkopus-network
restart: always
ports:
- "4150:4150"
- "4151:4151"
nsqadmin:
image: nsqio/nsq
container_name: nsqadmin
command: /nsqadmin --lookupd-http-address=nsqlookupd:4161
networks:
- linkopus-network
restart: always
ports:
- "4171:4171"
# use: mongo atlas
# mongodb:
# image: mongo:4.4.0-bionic
# container_name: mongodb
# environment:
# - MONGO_DATA_DIR=/data/db
# volumes:
# - mongodb_volume:/data/db
# ports:
# - "${MONGO_PORT}:27017"
# command: mongod
# networks:
# - linkopus-network
# restart: always