forked from francesco-velluto/se2023-15-thesis-management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release-nobuild.docker-compose.yml
55 lines (50 loc) · 1.52 KB
/
release-nobuild.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
version: '3.8'
# This is the version for release of the docker-compose.yml file that will be sent to the professor.
# This version does not build the images, but uses the images already built and uploaded to Docker Hub.
services:
backend:
image: francescovelluto/se2023-15-thesis-management-backend:latest
depends_on:
db:
condition: service_healthy
environment:
- REACT_APP_BACKEND_SERVER_PORT=${REACT_APP_BACKEND_SERVER_PORT}
- FRONTEND_PORT=${FRONTEND_PORT}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_HOST=${DB_HOST}
- SMTP_USERNAME=${SMTP_USERNAME}
- SMTP_PASSWORD=${SMTP_PASSWORD}
ports:
- "${REACT_APP_BACKEND_SERVER_PORT}:${REACT_APP_BACKEND_SERVER_PORT}"
networks:
- mynetwork
frontend:
image: francescovelluto/se2023-15-thesis-management-frontend:latest
depends_on:
- backend
environment:
- FRONTEND_PORT=${FRONTEND_PORT}
- REACT_APP_BACKEND_SERVER_PORT=${REACT_APP_BACKEND_SERVER_PORT}
ports:
- "${FRONTEND_PORT}:${FRONTEND_PORT}"
networks:
- mynetwork
db:
image: francescovelluto/se2023-15-thesis-management-db:latest
environment:
- POSTGRES_DB='Thesis-Management-System'
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
networks:
- mynetwork
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
networks:
mynetwork:
driver: bridge