-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
45 lines (44 loc) · 1.21 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
version: "3.1"
services:
maildev:
container_name: maildev
build:
context: social-app-backend
dockerfile: Dockerfile.mail
ports:
- "1080:1080"
- "1025:1025"
postgres:
container_name: postgres
build:
context: social-app-backend
dockerfile: Dockerfile.postgres
ports:
- "5432:5432"
backend:
container_name: backend
depends_on:
- postgres
- maildev
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/socialapp
- GOOGLE_CLIENT_ID=YourId
- GOOGLE_CLIENT_SECRET=YourSecret
- GITHUB_CLIENT_ID=YourID
- GITHUB_CLIENT_SECRET=YourSecret
- FRONTEND_URL=http://frontend:4200
- MAIL_HOST=maildev
build:
context: social-app-backend
dockerfile: Dockerfile.backend
ports:
- "8080:8080"
frontend:
container_name: frontend
depends_on:
- backend
build:
context: social-app-frontend
dockerfile: Dockerfile.frontend
ports:
- "4200:80"