Skip to content

Commit

Permalink
Merge pull request #12 from Team-MailedIt/develop
Browse files Browse the repository at this point in the history
refactor: 서버 이전
  • Loading branch information
14hhan authored Dec 27, 2021
2 parents 9e4dda4 + 742ee62 commit 965553e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
22 changes: 20 additions & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
version: "3.8"
services:
db:
container_name: db
image: mariadb:latest
restart: always
environment:
MYSQL_ROOT_HOST: '%'
expose:
- 3306
ports:
- "3307:3306"
env_file:
- .env
volumes:
- dbdata:/var/lib/mysql

web:
container_name: web
build:
Expand All @@ -13,6 +28,8 @@ services:
volumes:
- static:/home/app/web/static
- media:/home/app/web/media
depends_on:
- db
expose:
- 8000
entrypoint:
Expand All @@ -24,9 +41,9 @@ services:
build: ./config/nginx
volumes:
- type: bind
source: /home/app/web/certbot/conf/archive
source: /home/app/certbot/conf/archive
target: /etc/nginx/ssl
- /home/app/web/certbot/data:/var/www/certbot
- /home/app/certbot/data:/var/www/certbot
- static:/home/app/web/static
- media:/home/app/web/media
ports:
Expand All @@ -38,3 +55,4 @@ services:
volumes:
static:
media:
dbdata:
3 changes: 3 additions & 0 deletions vote_mailedit/settings/prod.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from .base import *
import pymysql

pymysql.install_as_MySQLdb()

DEBUG = False

Expand Down

0 comments on commit 965553e

Please sign in to comment.