-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 804 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 804 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
46
47
48
services:
postgres:
image: postgres:latest
ports:
- '5432:5432'
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=master123
- POSTGRES_DB=postgres
volumes:
- pg_data:/var/lib/postgresql
networks:
- backend
redis:
image: redis:latest
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning
volumes:
- redis_data:/data
networks:
- backend
api:
build:
dockerfile: Dockerfile
context: .
ports:
- 5001:5001
env_file:
- .env.docker
volumes:
- ./:/app
- /app/node_modules
networks:
- backend
networks:
backend:
driver: bridge
volumes:
pg_data:
driver: local
redis_data:
driver: local