-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.33 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
version: "3"
services:
web:
image: nginx:1.21.6-alpine
container_name: nginx
restart: unless-stopped
tty: true
ports:
- "80:80"
volumes:
- ./nginx/html/index.html:/usr/share/nginx/html/index.html
- ./nginx/logs/access.log:/var/log/nginx/localhost.access.log
- ./nginx/conf.d/:/etc/nginx/conf.d/
mongodb:
container_name: mongodb
image: mongo:5.0.6
hostname: mongo-server
restart: unless-stopped
tty: true
environment:
MONGO_INITDB_ROOT_USERNAME: $MONGO_ROOT_USER
MONGO_INITDB_ROOT_PASSWORD: $MONGO_ROOT_PASS
APP_USER: $MONGO_APP_USER
APP_PWD: $MONGO_APP_PASS
DB_NAME: $MONGO_DB
DB_COLLECTION_NAME: $MONGO_COL
MONGO_HOSTNAME: mongo-server
volumes:
- ./mongodb/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
ports:
- "27017:27017"
fluentd:
container_name: fluentd
image: mmebin/fluent-mongo:01
restart: unless-stopped
hostname: fluend
ports:
- 1514:1514/udp
- 24224:24224
volumes:
- ./fluentd/fluent.conf:/fluentd/etc/fluent.conf
- ./nginx/logs/:/var/log/nginx
links:
- mongodb
notify_app:
container_name: notify_app
image: mmebin/ebot-app:01
hostname: notify_app
restart: unless-stopped
ports:
- 8080:8080
links:
- mongodb