-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (63 loc) · 2.24 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
x-app: &app
build:
context: .
dockerfile: Dockerfile
args:
INSTALL_DEV: "true"
environment:
- LOG_LEVEL=${LOG_LEVEL-debug}
- NODE_ENV=development
- SALEOR_URL=${SALEOR_URL:?SALEOR_URL env var is required}
- STATIC_URL=${STATIC_URL:?STATIC_URL env is required}
- STOREFRONT_URL=${STOREFRONT_URL:?STOREFRONT_URL env is required}
- SQS_QUEUE_URL=${SQS_QUEUE_URL:?SQS_QUEUE_URL env is required}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID?:AWS_ACCESS_KEY_ID env is required}
- AWS_REGION=${AWS_REGION?:AWS_REGION env is required}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY?:AWS_SECRET_ACCESS_KEY env is required}
- SECRET_MANAGER_APP_CONFIG_PATH=${SECRET_MANAGER_APP_CONFIG_PATH?:SECRET_MANAGER_APP_CONFIG_PATH env is required}
- EMAIL_PROVIDER=${EMAIL_PROVIDER:-NODE_MAILER}
- SMTP_HOST=${SMTP_HOST-host.docker.internal}
- SMTP_PORT=${SMTP_PORT-1025}
env_file:
- .env
volumes:
- ./src/:/app/src/
- ./build/:/app/build/
services:
app:
<<: *app
container_name: "app"
ports:
- "3000:3000"
emails:
<<: *app
container_name: "emails"
command: pnpm dev:emails
ports:
- "3002:3002"
localstack:
container_name: localstack
image: localstack/localstack:3.7
environment:
# LocalStack configuration: https://docs.localstack.cloud/references/configuration/
- AWS_DEFAULT_REGION=${AWS_REGION?:AWS_REGION env is required}
- SERVICES=sqs,ses,secretsmanager
- DEBUG=${DEBUG:-0}
- FROM_EMAIL=${FROM_EMAIL?:FROM_DOMAIN env is required}
- FROM_DOMAIN=${FROM_DOMAIN?:FROM_DOMAIN env is required for running SES locally}
- SECRET_MANAGER_APP_CONFIG_PATH=${SECRET_MANAGER_APP_CONFIG_PATH?:SECRET_MANAGER_APP_CONFIG_PATH env is required}
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
volumes:
- "./localstack:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
- "./etc/commands/init-aws.sh:/etc/localstack/init/ready.d/init-aws.sh" # ready hook
mailpit:
container_name: mailpit
image: axllent/mailpit:v1.20
ports:
- "8025:8025"
- "1025:1025"
environment:
- TZ=UTC