/
docker-compose.yml
56 lines (55 loc) · 1.1 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
version: "3.9"
services:
database_speedy:
image: postgres
container_name: database_api
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_DB=template
- POSTGRES_USER=root
- POSTGRES_PASSWORD=passw
volumes:
- pgdata:/data/postgres
mongodb:
image: mongo
command: [--auth]
container_name: mongo_template
restart: always
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=mongopassw
- MONGODB_USER=root
- MONGODB_PASS=mongopassw
- MONGO_INITDB_DATABASE=template
volumes:
- pgdata:/data/db
redis:
image: redis
container_name: redis_template
restart: always
ports:
- 6379:6379
app:
build: .
container_name: template_api
restart: always
ports:
- 3003:3003
- 9229:9229
volumes:
- .:/usr/app
links:
- database_api
- mongo_template
- redis_template
depends_on:
- database_api
- mongo_template
- redis_template
volumes:
pgdata:
driver: local