This repository has been archived by the owner on May 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
90 lines (90 loc) · 2.33 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: "3.2"
services:
template-serverless-lambda-python-lambda-api:
build:
context: ./examples/lambda_api/
dockerfile: ./docker/python/Dockerfile
privileged: true
entrypoint: ["sh", "./docker/python/entrypoint.sh"]
environment:
# Fake credentials for Localstack
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
TEST_ENV: ${TEST_ENV}
RUNNING_WITH_DOCKER: "true"
# depends_on:
# - "localstack"
# - "redis"
# - "mysql"
ports:
- '5000:5000'
networks:
- service-python-v1
volumes:
- ./examples/lambda_api/:/app
template-serverless-lambda-python-lambda-sqs:
# container_name: template-serverless-lambda-python-lambda-sqs
build:
context: ./examples/lambda_sqs/
dockerfile: ./docker/python/Dockerfile
privileged: true
environment:
# Fake credentials for Localstack
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
TEST_ENV: ${TEST_ENV}
RUNNING_WITH_DOCKER: "true"
# depends_on:
# - "localstack"
# - "redis"
# - "mysql"
# ports:
# - 5001:5000
networks:
- service-python-v1
volumes:
- ./examples/lambda_sqs/:/app
redis:
image: "redis:alpine"
ports:
- '6379:6379'
expose:
- 6379
networks:
- service-python-v1
mysql:
image: mysql:5.7.22
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: store
MYSQL_ROOT_PASSWORD: store
networks:
- service-python-v1
localstack:
image: localstack/localstack
privileged: true
ports:
- "4566:4566"
- "4567-4582:4567-4582"
- "9070:9070"
- "8080:8080"
environment:
SERVICES: sqs,lambda,cloudwatch,s3
DOCKER_HOST: unix:///var/run/docker.sock
PORT_WEB_UI: 9070
# LAMBDA_EXECUTOR: docker # está dando erro via docker
LAMBDA_EXECUTOR: docker
LAMBDA_REMOTE_DOCKER: 1
LAMBDA_DOCKER_NETWORK: service-python-v1
DEBUG: 1
HOSTNAME_EXTERNAL: localstack
LEGACY_DIRECTORIES: 1
networks:
- service-python-v1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/localstack:/tmp/localstack
networks:
service-python-v1:
external: true