윤준석

Merge branch 'feature/220523_deployment_all' into 'main'

Feature/220523 deployment all



See merge request !15
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
1 +version: '3'
2 +
3 +services:
4 + daangn_api:
5 + image: daangn-api-server
6 + restart: always
7 + container_name: daangn-api-server-container
8 + ports:
9 + - '18080:8080'
10 +
11 + joongna_api:
12 + image: joongna-api-server
13 + restart: always
14 + container_name: joongna-api-server-container
15 + ports:
16 + - '18081:8080'
17 +
18 + bunjang_api:
19 + image: bunjang-api-server
20 + restart: always
21 + container_name: bunjang-api-server-container
22 + ports:
23 + - '18082:8080'
24 +
25 + db:
26 + image: mamuri-db
27 + restart: always
28 + container_name: mamuri-db-container
29 + ports:
30 + - '13060:3306'
31 + env_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