-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 801 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (41 loc) · 801 Bytes
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
version: '3.7'
services:
postgres_bd:
image: postgres
container_name: products_app
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=docker
- POSTGRES_DB=products
volumes:
- pgdata:/data/postgres
redis_bd:
image: 'redis:alpine'
restart: always
container_name: redis
ports:
- 6379:6379
environment:
- REDIS_REPLICATION_MODE=master
command: redis-server --requirepass redisProduct
volumes:
- rsdata:/data/rd
app:
build: .
container_name: node
restart: always
ports:
- 3333:3333
volumes:
- .:/usr/app
depends_on:
- postgres_bd
- redis_bd
volumes:
pgdata:
driver: local
rsdata:
driver: local