diff --git a/backend-api/.env.ci b/backend-api/.env.ci new file mode 100644 index 0000000..fb20efc --- /dev/null +++ b/backend-api/.env.ci @@ -0,0 +1,2 @@ +DOCKER_LOCAL_VOLUME=./ +DOCKER_LOCAL_AWS=/home/vanilla/.aws diff --git a/backend-api/docker-compose-build-dev.yml b/backend-api/docker-compose-build-dev.yml new file mode 100644 index 0000000..c1ed978 --- /dev/null +++ b/backend-api/docker-compose-build-dev.yml @@ -0,0 +1,13 @@ +version: '3.5' + +services: + serverless-api-dev-build: + image: vanillabrain/serverless-docker:1.0 + restart: on-failure + working_dir: /app + command: bash -c "npm install && npm run deploy:dev" + volumes: + - ${DOCKER_LOCAL_VOLUME}:/app + - ${DOCKER_LOCAL_AWS}:/root/.aws + environment: + TZ: Asia/Seoul