-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (52 loc) · 1.2 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.8'
services:
backend:
image: job-application-tracker
build: ./backend
ports:
- "8080:8080"
- "443:443"
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/job_app_tracker
SPRING_JPA_HIBERNATE_DDL_AUTO: update
APP_URL: ${APP_URL}
SPRING_DATASOURCE_USERNAME: ${DB_USER}
SPRING_DATASOURCE_PASSWORD: ${DB_PASS}
KEY_STORE_ALIAS: ${KEY_STORE_ALIAS}
KEY_STORE_PASS: ${KEY_STORE_PASS}
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS}
GEMINI_API_KEY: ${GEMINI_API_KEY}
PORT: ${PORT}
MAIL_HOST: ${MAIL_HOST}
MAIL_PORT: ${MAIL_PORT}
MAIL_USER: ${MAIL_USER}
MAIL_PASS: ${MAIL_PASS}
depends_on:
- db
networks:
- app-network
db:
image: postgres:14
environment:
POSTGRES_DB: job_app_tracker
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- app-network
frontend:
build: ./frontend
ports:
- "3000:80"
depends_on:
- backend
networks:
- app-network
volumes:
postgres_data:
networks:
app-network:
driver: bridge