-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
41 lines (30 loc) · 920 Bytes
/
docker-compose.yaml
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
version: '3.9'
# Setup a provide network for local deployments of aws services
networks:
backend:
name: aws_backend
driver: bridge
services:
aws-sam-api-server:
image: marcellodesales/aws-sam-server:${VERSION:-latest}
build:
context: .
# A container will run in a dir with the same name as current dir
working_dir: $PWD
volumes:
# The volumes for the current dir is mounted
- $PWD:$PWD
# Needed so a docker container can be run from inside a docker container
- /var/run/docker.sock:/var/run/docker.sock
# The settings to your aws if needed
- ~/.aws/:/root/.aws:ro
networks:
- "backend"
ports:
# SAM API server runs on port 3000
- "3000:3000"
environment:
# Just don't send telemetry data to AWS...
SAM_CLI_TELEMETRY: false
# The docker network created
DOCKER_NETWORK: aws_backend