-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (31 loc) · 1.05 KB
/
docker-compose.yml
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
version: "3.9" # opsiyonel.
services:
client:
# container_name: frontend (default: keyName)
image: murttkapln/docker-compose-client
build: ./client
ports:
# dış/iç port numaraları
- 5173:5173
- 3000:5173
- 80:5173
restart: on-failure # hata anında tekrar çalıştır.
depends_on:
# önce aşağıdakileri çalıştır.
# aşağıda tanımlandı.
- server
server:
image: murttkapln/docker-compose-server
build: ./server
ports:
- 8000:8000
restart: on-failure
volumes:
# fiziksel yollar (external:internal)
- $PWD/server/logs:/server/logs
- $PWD/server/upload:/server/upload
# --------------------------------
# $ docker compose up # compose çalıştır.
# $ docker compose up -d --build # compose daemon aç ve tekrar build et.
# $ docker compose down # compose kapat.
# $ docker compose down -v # compose tümünü kapat.