-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (58 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
63 lines (58 loc) · 1.41 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
51
52
53
54
55
56
57
58
59
60
61
62
63
# docker-compose file syntax version
version: '3.8'
services:
matchub-db-postgres:
build:
# Indicates where to start the directory analysis to find dockerfile, env_file and volumes
context: .
dockerfile: docker/dockerfiles/Dockerfile.database
image: matchub-db-postgres-image
container_name: matchub-db-postgres-container
networks:
- matchub-network
ports:
- "5432:5432"
env_file:
- docker/secrets/secrets-env-db.env
volumes:
- volume-db:/var/lib/postgresql/data
matchub-api-spring:
build:
context: .
dockerfile: docker/dockerfiles/Dockerfile.api
image: matchub-api-spring-image
container_name: matchub-api-spring-container
networks:
- matchub-network
ports:
- "8080:8080"
env_file:
- docker/secrets/secrets-env-api.env
volumes:
- volume-api:/openjdk/logs
depends_on:
- matchub-db-postgres
matchub-web-angular:
build:
context: .
dockerfile: docker/dockerfiles/Dockerfile.web
image: matchub-web-angular-image
container_name: matchub-web-angular-container
networks:
- matchub-network
ports:
- "80:80"
volumes:
- volume-web:/var/log/nginx
depends_on:
- matchub-api-spring
networks:
matchub-network:
driver: bridge
volumes:
volume-db:
driver: local
volume-api:
driver: local
volume-web:
driver: local