File tree Expand file tree Collapse file tree 13 files changed +48
-163
lines changed Expand file tree Collapse file tree 13 files changed +48
-163
lines changed Original file line number Diff line number Diff line change 84
84
username : ${{ secrets.RELEASE_USERNAME }}
85
85
password : ${{ secrets.RELEASE_PASSWORD }}
86
86
port : ${{ secrets.RELEASE_PORT }}
87
- source : " docker-compose.production. yml"
87
+ source : " docker-compose.yml"
88
88
target : " oao"
89
89
90
90
- name : 운영 서버에서 Docker Compose 실행
@@ -100,7 +100,7 @@ jobs:
100
100
101
101
cd oao
102
102
103
- docker-compose -f docker-compose.production. yml up -d
103
+ docker-compose -f docker-compose.yml up -d
104
104
docker image prune
105
105
106
106
- name : 실패시 슬랙 메시지 전송
Original file line number Diff line number Diff line change 72
72
tags : ghcr.io/kumsil1006/oao-dev-client
73
73
context : ./client
74
74
75
- - name : Docker Compose 파일 개발 서버로 복사
76
- uses : appleboy/scp-action@master
77
- with :
78
- host : ${{ secrets.ANOTHER_HOST }}
79
- username : ${{ secrets.ANOTHER_USERNAME }}
80
- password : ${{ secrets.ANOTHER_PASSWORD }}
81
- port : ${{ secrets.ANOTHER_PORT }}
82
- source : " docker-compose.yml"
83
- target : " oao"
84
-
85
- - name : 개발 서버에서 Docker Compose 실행
86
- uses : appleboy/ssh-action@master
87
- with :
88
- host : ${{ secrets.ANOTHER_HOST }}
89
- username : ${{ secrets.ANOTHER_USERNAME }}
90
- password : ${{ secrets.ANOTHER_PASSWORD }}
91
- port : ${{ secrets.ANOTHER_PORT }}
92
- script : |
93
- echo ${{secrets.CONTAINER_REGISTRY_TOKEN}} | docker login ghcr.io -u kumsil1006 --password-stdin
94
- docker pull ghcr.io/kumsil1006/oao-dev-client
95
-
96
- cd oao
97
-
98
- docker-compose up -d
99
- docker image prune
100
-
101
75
- name : 실패시 슬랙 메시지 전송
102
76
if : ${{ failure() }}
103
77
uses : ./.github/actions/slack-notify
Original file line number Diff line number Diff line change 4
4
branches :
5
5
- release
6
6
paths :
7
- - " nginx/Dockerfile.production "
7
+ - " nginx/Dockerfile"
8
8
9
9
jobs :
10
10
proxy-build :
@@ -20,22 +20,14 @@ jobs:
20
20
username : kumsil1006
21
21
password : ${{ secrets.DOCKER_ACCESS_TOKEN }}
22
22
23
- - name : Docker images build 및 GitHub Container Registry로 push
24
-
25
- with :
26
- push : true
27
- tags : ghcr.io/kumsil1006/oao-proxy
28
- context : ./nginx
29
- file : ./nginx/Dockerfile.production
30
-
31
23
- name : Docker Compose 파일 운영 서버로 복사
32
24
uses : appleboy/scp-action@master
33
25
with :
34
26
host : ${{ secrets.RELEASE_HOST }}
35
27
username : ${{ secrets.RELEASE_USERNAME }}
36
28
password : ${{ secrets.RELEASE_PASSWORD }}
37
29
port : ${{ secrets.RELEASE_PORT }}
38
- source : " docker-compose.production. yml"
30
+ source : " docker-compose.yml"
39
31
target : " oao"
40
32
41
33
- name : 운영 서버에서 Docker Compose 실행
@@ -48,10 +40,10 @@ jobs:
48
40
script : |
49
41
echo ${{secrets.CONTAINER_REGISTRY_TOKEN}} | docker login ghcr.io -u kumsil1006 --password-stdin
50
42
docker pull ghcr.io/kumsil1006/oao-proxy
51
-
43
+
52
44
cd oao
53
-
54
- docker-compose -f docker-compose.production. yml up -d
45
+
46
+ docker-compose -f docker-compose.yml up -d
55
47
docker image prune
56
48
57
49
- name : 실패시 슬랙 메시지 전송
Original file line number Diff line number Diff line change 27
27
tags : ghcr.io/kumsil1006/oao-dev-proxy
28
28
context : ./nginx
29
29
30
- - name : Docker Compose 파일 개발 서버로 복사
31
- uses : appleboy/scp-action@master
32
- with :
33
- host : ${{ secrets.ANOTHER_HOST }}
34
- username : ${{ secrets.ANOTHER_USERNAME }}
35
- password : ${{ secrets.ANOTHER_PASSWORD }}
36
- port : ${{ secrets.ANOTHER_PORT }}
37
- source : " docker-compose.yml"
38
- target : " oao"
39
-
40
- - name : 개발 서버에서 Docker Compose 실행
41
- uses : appleboy/ssh-action@master
42
- with :
43
- host : ${{ secrets.ANOTHER_HOST }}
44
- username : ${{ secrets.ANOTHER_USERNAME }}
45
- password : ${{ secrets.ANOTHER_PASSWORD }}
46
- port : ${{ secrets.ANOTHER_PORT }}
47
- script : |
48
- echo ${{secrets.CONTAINER_REGISTRY_TOKEN}} | docker login ghcr.io -u kumsil1006 --password-stdin
49
- docker pull ghcr.io/kumsil1006/oao-dev-proxy
50
-
51
- cd oao
52
-
53
- docker-compose up -d
54
- docker image prune
55
-
56
30
- name : 실패시 슬랙 메시지 전송
57
31
if : ${{ failure() }}
58
32
uses : ./.github/actions/slack-notify
Original file line number Diff line number Diff line change 53
53
username : ${{ secrets.RELEASE_USERNAME }}
54
54
password : ${{ secrets.RELEASE_PASSWORD }}
55
55
port : ${{ secrets.RELEASE_PORT }}
56
- source : " docker-compose.production. yml"
56
+ source : " docker-compose.yml"
57
57
target : " oao"
58
58
59
59
- name : 운영 서버에서 Docker Compose 실행
69
69
70
70
cd oao
71
71
72
- docker-compose -f docker-compose.production. yml up -d
72
+ docker-compose -f docker-compose.yml up -d
73
73
docker image prune
74
74
75
75
- name : 실패시 슬랙 메시지 전송
Original file line number Diff line number Diff line change 40
40
push : true
41
41
tags : ghcr.io/kumsil1006/oao-dev-server
42
42
43
- - name : Docker Compose 파일 개발 서버로 복사
44
- uses : appleboy/scp-action@master
45
- with :
46
- host : ${{ secrets.ANOTHER_HOST }}
47
- username : ${{ secrets.ANOTHER_USERNAME }}
48
- password : ${{ secrets.ANOTHER_PASSWORD }}
49
- port : ${{ secrets.ANOTHER_PORT }}
50
- source : " docker-compose.yml"
51
- target : " oao"
52
-
53
- - name : 개발 서버에서 Docker Compose 실행
54
- uses : appleboy/ssh-action@master
55
- with :
56
- host : ${{ secrets.ANOTHER_HOST }}
57
- username : ${{ secrets.ANOTHER_USERNAME }}
58
- password : ${{ secrets.ANOTHER_PASSWORD }}
59
- port : ${{ secrets.ANOTHER_PORT }}
60
- script : |
61
- echo ${{secrets.CONTAINER_REGISTRY_TOKEN}} | docker login ghcr.io -u kumsil1006 --password-stdin
62
- docker pull ghcr.io/kumsil1006/oao-dev-server
63
-
64
- cd oao
65
-
66
- docker-compose up -d
67
- docker image prune
68
-
69
43
- name : 실패시 슬랙 메시지 전송
70
44
if : ${{ failure() }}
71
45
uses : ./.github/actions/slack-notify
Original file line number Diff line number Diff line change
1
+ {
2
+ "rewrites" : [{ "source" : " /(.*)" , "destination" : " /" }]
3
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
version : " 3.9"
2
2
services :
3
3
proxy :
4
- image : " ghcr.io/kumsil1006/oao-dev-proxy :latest"
4
+ image : " nginx :latest"
5
5
ports :
6
6
- " 80:80"
7
+ - " 443:443"
7
8
restart : always
9
+ volumes :
10
+ - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
11
+ - ./data/certbot/conf:/etc/letsencrypt
12
+ - ./data/certbot/www:/var/www/certbot
13
+ command : ' /bin/sh -c '' while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'' '
14
+
15
+ certbot :
16
+ image : " certbot/certbot"
17
+ restart : unless-stopped
18
+ volumes :
19
+ - ./data/certbot/conf:/etc/letsencrypt
20
+ - ./data/certbot/www:/var/www/certbot
21
+ entrypoint : " /bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
22
+
8
23
frontend :
9
- image : " ghcr.io/kumsil1006/oao-dev- client:latest"
24
+ image : " ghcr.io/kumsil1006/oao-client:latest"
10
25
restart : always
11
26
expose :
12
27
- " 3000"
13
28
backend :
14
- image : " ghcr.io/kumsil1006/oao-dev- server:latest"
29
+ image : " ghcr.io/kumsil1006/oao-server:latest"
15
30
restart : always
16
31
expose :
17
32
- " 8080"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments