-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
59 lines (54 loc) · 1.19 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
57
58
version: '3'
networks:
bookReview_network:
driver: bridge
services:
bookReview_bdd:
image: "postgres:15.1"
container_name: bookReview_bdd
environment:
- POSTGRES_PASSWORD=bookreview
- POSTGRES_USER=bookreview
- POSTGRES_DB=bookreview
ports:
- "5432:5432"
volumes:
- bookReview_bdd_vol:/var/lib/postgresql/data
networks:
bookReview_network:
aliases:
- bdd
bookReview_back:
build:
context: ./api
image: inetel/bookreview_back
container_name: bookReview_back
depends_on:
- bookReview_bdd
ports:
- "${TOMCAT_HTTP_PORT:-8080}:8080"
volumes:
- bookReview_back_tmp_vol:/tmp
networks:
bookReview_network:
aliases:
- back
bookReview_front:
build:
context: ./ionic-app
image: inetel/bookreview_front
container_name: bookReview_front
depends_on:
- bookReview_back
ports:
- "${NGINX_HTTP_PORT:-80}:80"
volumes:
- bookReview_front_dist_vol:/app/dist
networks:
bookReview_network:
aliases:
- front
volumes:
bookReview_bdd_vol:
bookReview_back_tmp_vol:
bookReview_front_dist_vol: