-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 971 Bytes
/
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
version: '3'
services:
mongo:
container_name: mongo
image: mongo:4.2
restart: always
volumes:
- ./docker-data/mongo:/data/db
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: sweep
MONGO_INITDB_ROOT_PASSWORD: sweep
mongo-express:
image: mongo-express
restart: always
ports:
- "8081:8081"
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: sweep
ME_CONFIG_MONGODB_ADMINPASSWORD: sweep
ME_CONFIG_MONGODB_URL: mongodb://sweep:sweep@mongo:27017/
redis:
image: redis
restart: always
command: redis-server --port 6379
container_name: "redis"
volumes:
- ./docker-data/redis:/data
labels:
- "name=redis"
- "mode=standalone"
ports:
- 6379:6379
# spring:
# container_name: jaksim31-backend
# build:
# context: ./
# dockerfile: ./Dockerfile
# ports:
# - "8080:8080"
# depends_on:
# - mongo