소스 검색

dockerfile. build image

master
Ignacio Falco 4 년 전
부모
커밋
c9770b754d
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 3
    0
      Dockerfile
  2. 3
    2
      docker-compose.yml

+ 3
- 0
Dockerfile 파일 보기

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

+ 3
- 2
docker-compose.yml 파일 보기

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

Loading…
취소
저장