Kaynağa Gözat

dockerfile. build image

master
Ignacio Falco 4 yıl önce
ebeveyn
işleme
c9770b754d
2 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. 3
    0
      Dockerfile
  2. 3
    2
      docker-compose.yml

+ 3
- 0
Dockerfile Dosyayı Görüntüle

@@ -0,0 +1,3 @@
1
+FROM nginx:1.18-alpine
2
+COPY nginx.conf /etc/nginx/
3
+

+ 3
- 2
docker-compose.yml Dosyayı Görüntüle

@@ -3,8 +3,9 @@ version: '3'
3 3
 services:
4 4
 
5 5
     reverse-proxy:
6
-        image: nginx:1.18-alpine
6
+        build:
7
+            context: .
8
+            dockerfile: Dockerfile
7 9
         volumes: 
8 10
             - ./sites/sites-available:/etc/nginx/conf.d
9
-            - ./nginx.conf:/etc/nginx/nginx.conf
10 11
         network_mode: host

Loading…
İptal
Kaydet