forked from rderradi/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 741 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (36 loc) · 741 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
version: '3.8'
services:
database:
build:
context: database
image: ghcr.io/fvilarinho/demo-database:latest
container_name: database
hostname: database
ports:
- "3306:3306"
backend:
build:
context: backend
image: ghcr.io/fvilarinho/demo-backend:latest
container_name: backend
hostname: backend
ports:
- "8080:8080"
- "8000:8000"
volumes:
- database-data:/var/lib/mysql
depends_on:
- database
frontend:
build:
context: frontend
image: ghcr.io/fvilarinho/demo-frontend:latest
container_name: frontend
hostname: frontend
ports:
- "80:80"
- "443:443"
depends_on:
- backend
volumes:
database-data: