diff --git a/.gitignore b/.gitignore index 81e6e39b..f29c96a0 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index b4ab3a0d..99402c1f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,10 +5,9 @@ services: ports: - '3000:3000' env_file: - - .env + - .env.development + # - .env.production (베포 ec2에서의 설정입니다) restart: always - environment: - TZ: Asia/Seoul redis: image: 2swo/redis @@ -16,9 +15,9 @@ services: - 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: @@ -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: