-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (50 loc) · 873 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
48
49
50
51
52
53
54
55
56
version: '3.7'
services:
redis:
image: redis
restart: always
networks:
- api-net
volumes:
- data:/var/lib/redis
ports:
- 6379:6379
mongo:
image: mongo
hostname: mongo
restart: always
networks:
- api-net
volumes:
- data:/data/db/
ports:
- 27017:27017
mongo-express:
image: mongo-express
restart: always
environment:
- ME_CONFIG_MONGODB_SERVER=mongo
ports:
- 8081:8081
depends_on:
- mongo
networks:
- api-net
postgres:
image: postgres
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=cs480
- POSTGRES_DB=finalproject
ports:
- 5432:5432
networks:
- api-net
networks:
api-net:
volumes:
data:
pgdata: