-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (50 loc) · 1.3 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
version: "2"
services:
customer-service:
image: customer-service
container_name: customer-service
build:
context: ./customers-service
dockerfile: Dockerfile
restart: on-failure
tty: true
mem_limit: 1024M
mem_reservation: 512M
ports:
- 6060:6060
volumes:
- /etc/hosts:/etc/hosts
- /var/run/docker.sock:/var/run/docker.sock
networks:
- default
invoiceservice:
container_name: invoiceservice
build:
context: ./invoiceservice
dockerfile: Dockerfile
image: invoiceservice
restart: on-failure
tty: true
mem_limit: 1024M
mem_reservation: 512M
ports:
- 7070:7070
volumes:
- /etc/hosts:/etc/hosts
- /var/run/docker.sock:/var/run/docker.sock
networks:
- default
#
# postgres:
# image: postgres:11
# container_name: postgres
# restart: on-failure
# tty: true
# ports:
# - 5432:5432
# volumes:
# - /etc/hosts:/etc/hosts
# - /var/run/docker.sock:/var/run/docker.sock
# - /Users/ritgirdh/Desktop/tools/postgres:/var/lib/postgresql/data
networks:
default: