-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 839 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 839 Bytes
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
version: "3.9"
networks:
stud-fit-network:
driver: "bridge"
services:
stud-fit-db:
container_name: stud-fit-db
image: postgres
env_file:
- .env
ports:
- "5432:5432"
networks:
- stud-fit-network
stud-fit-cache:
container_name: stud-fit-cache
image: redis:7.2
ports:
- "6379:6379"
networks:
- stud-fit-network
stud-fit-api:
container_name: stud-fit-api
build: .
image: deiz0n/stud-fit-api
command: [ "/app/wait-for-it.sh", "-t", "10", "stud-fit-db:5432", "--", "java", "-jar", "target/studfit-0.0.1-SNAPSHOT.jar" ]
ports:
- "80:8080"
environment:
HOST: stud-fit-db
REDIS_HOST: stud-fit-cache
env_file:
- .env
networks:
- stud-fit-network
depends_on:
- stud-fit-db
- stud-fit-cache