Skip to content

Commit

Permalink
Merge pull request #364 from modern-agile-team/setting/#363/Match_ser…
Browse files Browse the repository at this point in the history
…ver_and_local_do

Setting/#363/match server and local docker-compose
  • Loading branch information
2swo authored Mar 15, 2024
2 parents 4b8f9ca + e446045 commit e8cc9b8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ web_modules/
.env.local
.env.development
.env.production
.env.redis
.env.nginx-certbot
.env.mysql

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand Down
24 changes: 18 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@ services:
ports:
- '3000:3000'
env_file:
- .env
- .env.development
# - .env.production (베포 ec2에서의 설정입니다)
restart: always
environment:
TZ: Asia/Seoul

redis:
image: 2swo/redis
volumes:
- redis_data:/usr/local/etc/redis
command: sh -c "redis-server /usr/local/etc/redis/redis.conf"
env_file:
- .env
- .env.redis
ports:
- ${REDIS_BINDING_PORT}:${REDIS_PORT}
- '6379:6379'
restart: always

nginx-certbot:
Expand All @@ -27,7 +26,20 @@ services:
- '80:80'
- '443:443'
env_file:
- .env
- .env.nginx-certbot

# mysql 이미지는 따로 dockerfile로 빌드되진 않습니다.
# version과 port,env파일명,command 참고하시면 될 것 같습니다.
# development_db:
# image: mysql:8.0.36
# restart: unless-stopped
# ports:
# - '3306:3306'
# env_file:
# - .env.mysql
# command:
# - --character-set-server=utf8mb4
# - --collation-server=utf8mb4_unicode_ci

volumes:
redis_data:

0 comments on commit e8cc9b8

Please sign in to comment.