-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
47 lines (44 loc) · 889 Bytes
/
docker-compose.yaml
File metadata and controls
47 lines (44 loc) · 889 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
43
44
45
46
47
version: "3"
services:
# ----- INGRESS APP -----
ingress:
container_name: nginx
build:
dockerfile: ./infra/ingress.dockerfile
context: .
restart: always
ports:
- "80:80"
- "443:443"
networks:
- internal-network
depends_on:
# - backend
- frontend
# ----- FRONTEND -----
frontend:
container_name: frontend
build:
dockerfile: ./infra/frontend.dockerfile
context: .
restart: always
networks:
- internal-network
# ----- BACKEND -----
backend:
container_name: backend
build:
dockerfile: ./infra/backend.dockerfile
context: .
restart: always
networks:
- internal-network
# volume for logs
volumes:
- source: ~/
target: /deployments/logs
type: bind
# ----- NETWORK -----
networks:
internal-network:
driver: bridge