윤준석

ADD: deployment configuration

docker-compose, deploy.sh, undeploy.sh
1 -FROM python:3 1 +FROM python:alpine
2 2
3 WORKDIR /usr/src/app 3 WORKDIR /usr/src/app
4 4
......
1 +#!/usr/bin/env bash
2 +
3 +docker build -t daangn-api-server ./daangn/
4 +docker build -t joongna-api-server ./joongna/
5 +docker build -t bunjang-api-server ./bunjang/
6 +docker build -t mamuri-db ./database/
7 +
8 +docker-compose up -d
...\ No newline at end of file ...\ No newline at end of file
...@@ -29,4 +29,4 @@ services: ...@@ -29,4 +29,4 @@ services:
29 ports: 29 ports:
30 - '13060:3306' 30 - '13060:3306'
31 env_file: 31 env_file:
32 - - "./mysql_init/.env"
...\ No newline at end of file ...\ No newline at end of file
32 + - "./database/mysql_init/.env"
...\ No newline at end of file ...\ No newline at end of file
......
1 +#!/usr/bin/env bash
2 +
3 +docker-compose down
4 +
5 +docker image rm daangn-api-server
6 +docker image rm joongna-api-server
7 +docker image rm bunjang-api-server
8 +docker image rm mamuri-db