-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
63 lines (45 loc) · 1.25 KB
/
docker-compose.yaml
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
version : "3.8"
services :
backend_service :
image : kopiloe_backend_service
build :
context : ../backend_service
shm_size : 536870912
dockerfile : backend_production.dockerfile
labels :
role : "backend service"
command : 'uvicorn coffee_shop.asgi:application --host 0.0.0.0 --port 80'
ports :
- 80:80
networks :
- network_services
frontend_service :
image : kopiloe_frontend_service
build :
context : ../frontend_service
shm_size : 536870912
dockerfile : frontend_production.dockerfile
labels :
role : "frontend service"
command : 'php artisan serve --host=0.0.0.0 --port=80'
ports :
- 80:80
postgres_service :
container_name : postgres
image : postgres:alpine
environment :
- POSTGRES_USER=kopiloe
- POSTGRES_PASSWORD=kopiloe
- POSTGRES_DB=kopiloe
volumes :
- kopiloe_db_vol:/home/belajarqywok/volumes/kopiloe_db
ports :
- 5432:5432
networks :
- network_services
volumes :
kopiloe_db_vol :
external : true
networks:
network_services :
name : network_services