-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yaml
52 lines (50 loc) · 987 Bytes
/
compose.yaml
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
services:
postgres:
image: postgres:latest
container_name: postgres
ports:
- '5432:5432'
environment:
POSTGRES_PASSWORD: josmwafrika789
POSTGRES_USER: postgres
POSTGRES_DB: shift_db_dev
POSTGRES_HOST: postgres
volumes:
- 'backend-db:/var/lib/postgresql/data'
deploy:
resources:
limits:
cpus: '2'
memory: 512M
reservations:
cpus: '0.25'
memory: 64M
networks:
- application
backend:
depends_on:
- postgres
build:
context: .
dockerfile: Dockerfile
image: compose_node
container_name: backend
volumes:
- './:/app'
ports:
- '5000:5000'
deploy:
resources:
limits:
cpus: '2'
memory: 512M
reservations:
cpus: '0.25'
memory: 64M
networks:
- application
networks:
application:
driver: bridge
volumes:
backend-db: