-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (55 loc) · 1.31 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
version: "3.9"
services:
my-rabbitmq:
image: rabbitmq:3.9.3-management-alpine
container_name: my-rabbitmq
ports:
- 5672:5672
- 15672:15672 # For RabbitMQ GUI
volumes:
- /tmp/devops-app/:/var/lib/rabbitmq:rw
# restart: on-failure
networks:
- dev-network
mongodb:
image: mongo:5.0.2
container_name: mongodb
volumes:
- /tmp/mongodb/database:/data/db
ports:
- 27017:27017
# restart: on-failure
networks:
- dev-network
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
PUID: 1000
PGID: 1000
redis:
image: redis:6.2
container_name: my-redis
ports:
- 6379:6379
networks:
- dev-network
# GUI for MongoDB
mongo-express:
image: mongo-express:latest
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGO_INITDB_ROOT_USERNAME}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_PORT: "27017"
networks:
- dev-network
ports:
- 8081:8081
# restart: on-failure
depends_on:
- mongodb
volumes:
- /tmp/mongodb/database:/data/db
networks:
dev-network:
driver: bridge