Skip to content

Commit

Permalink
Merge pull request #302 from Quickchive/feat/#301-upload-image
Browse files Browse the repository at this point in the history
feat: create upload image services
  • Loading branch information
stae1102 authored Mar 9, 2024
2 parents ea23940 + ea89bb0 commit 731c3cd
Show file tree
Hide file tree
Showing 14 changed files with 12,719 additions and 8,726 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ lerna-debug.log*

# dotenv environment variables file
.env
.env.dev
.env.prod
.env.test
.env.*
envFile.ts

# certificate files
*.pem
*.pem

.localstack
26 changes: 23 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,42 @@ services:
image: redis:latest
restart: always
ports:
- 6379:6379
- 6380:6379
networks:
- shared-network

postgres: # Name of container
image: postgres:alpine
restart: always
env_file:
- .env.prod
- .env.local
environment:
POSTGRES_HOST_AUTH_METHOD: 'trust'
TZ: 'Asia/Seoul' # Timezone for OS
PGTZ: 'Asia/Seoul' # Timezone for postgres
ports:
- 5432:5432
- 5433:5432
networks:
- shared-network

localstack:
container_name: 'localstack-quickarchive'
image: localstack/localstack:latest
ports:
- '4567:4566' # Default port forward
environment:
- SERVICES=s3
- EDGE_PORT=4566
- DEBUG=1 # Debug level 1 if you want to logs, 0 if you want to disable
- START_WEB=0 # Flag to control whether the Web UI should be started in Docker
- AWS_ACCESS_KEY_ID=local
- AWS_SECRET_ACCESS_KEY=local
- DEFAULT_REGION=ap-northeast-2
volumes:
- './.localstack:/var/lib/localstack'
- '/var/run/docker.sock:/var/run/docker.sock'
- './localstack_s3_init.sh:/etc/localstack/init/ready.d/localstack_s3_init.sh'

networks:
shared-network:
driver: bridge
3 changes: 3 additions & 0 deletions localstack_s3_init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
echo "Init localstack s3"
awslocal s3 mb s3://quickarchive-common-image
Loading

0 comments on commit 731c3cd

Please sign in to comment.