-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
82 lines (74 loc) · 1.85 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3.9'
services:
# docker exec -it api_app bash
app:
build:
context: .
dockerfile: Dockerfile
container_name: app-ctr
ports:
- "9000:9000"
volumes:
- .:/app
networks:
- clearly-network
depends_on:
- mongo
- redis
- minio
# docker exec -it mongo bash
# mongosh --host <hostname>:<port> --username <your_username> --password <your_password> --authenticationDatabase admin
mongo:
image: "prismagraphql/mongo-single-replica:5.0.3"
container_name: mongo-ctr
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: $MONGODB_USER
MONGO_INITDB_ROOT_PASSWORD: $MONGODB_PASSWORD
volumes:
- clearly_volume:/data/db
networks:
- clearly-network
# docker exec -it redis redis-cli
redis:
image: "redis:latest"
container_name: redis-ctr
ports:
- "6379:6379"
command: "redis-server --requirepass $REDIS_PASSWORD"
volumes:
- clearly_volume:/usr/local/etc/redis
networks:
- clearly-network
minio:
image: quay.io/minio/minio
container_name: minio-ctr
ports:
- "9001:9001"
environment:
- MINIO_ROOT_USER=$MINIO_ROOT_USER
- MINIO_ROOT_PASSWORD=$MINIO_ROOT_PASS
volumes:
- clearly_volume:/data
networks:
- clearly-network
command: server /data --console-address ":9001"
mailhog:
image: mailhog/mailhog
container_name: mail-hog-ctr
ports:
- "1025:1025" # SMTP port
- "8025:8025" # HTTP port
#environment: # To run with authentication, uncomment the following lines
# - MH_UI_AUTH_FILE=/auth.htpasswd
volumes:
- clearly_volume:/app/data
# - ./path/to/auth.htpasswd:/auth.htpasswd
networks:
- clearly-network
networks:
clearly-network:
driver: bridge
volumes:
clearly_volume: { }