-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (42 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
50 lines (42 loc) · 1.03 KB
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
services:
jas-postgres:
image: "postgres:9.6-alpine"
container_name: jas-postgres
volumes:
- jas-data:/var/lib/postgresql/data
ports:
- 5433:5432
environment:
- POSTGRES_DB=jas
- POSTGRES_USER=jas
- POSTGRES_PASSWORD=jas
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U jas" ]
interval: 5s
timeout: 5s
retries: 10
backend:
build: ./Backend
container_name: jas-backend
environment:
- DB_SERVER=jas-postgres
- POSTGRES_DB=jas
- POSTGRES_USER=jas
- POSTGRES_PASSWORD=jas
- APPLICATION_NAME=JAS
- MAIL_USERNAME=your_email@gmail.com
- MAIL_PASSWORD=your_app_password
- APPLICATION_MAIL=your_email@gmail.com
- JWT_SECRET="my-super-secret-key-that-is-at-least-64-characters-long-123456"
ports:
- 8080:8080
depends_on:
jas-postgres:
condition: service_healthy
frontend:
build: ./Frontend
container_name: jas-frontend
ports:
- 4200:80
volumes:
jas-data: