-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yaml
56 lines (56 loc) · 1.77 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.8'
services:
air-server:
image: air-server
container_name: air-server
build: .
environment:
NODE_ENV: development
POSTGRES_CONN_STR: postgresql://user:password@postgres:5432/db?schema=public
PORT: 8001
ports:
- 8001:8001
volumes:
- .blobs:/app/.blobs
- .keys:/app/.keys
- .logs:/app/.logs
gateway:
image: nginx:alpine
container_name: gateway
volumes:
- ./res/nginx.conf:/etc/nginx/conf.d/default.conf
- .blobs/certs/root-ca-cert:/etc/ssl/airbotics-root-ca-cert.pem
- .blobs/certs/gateway-cert:/etc/ssl/airbotics-gateway-cert.pem
- .keys/gateway-key-private.pem:/etc/ssl/airbotics-gateway-key.pem
ports:
- 8002:80
- 8003:443
postgres:
image: postgres
container_name: postgres
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: db
ports:
- 5432:5432
aws:
image: localstack/localstack-pro:latest
container_name: aws
environment:
- SERVICES=s3,secretsmanager,acm,lambda,apigateway,rds,ecr,acm
- DEBUG=1
- LOCALSTACK_API_KEY=${LOCALSTACK_API_KEY- }
- DOCKER_HOST=unix:///var/run/docker.sock
- LAMBDA_REMOVE_CONTAINERS=true
- LAMBDA_EXECUTOR=docker-reuse
- LAMBDA_REMOTE_DOCKER=false
# - AWS_DEFAULT_REGION=eu-west-1
ports:
- 4566:4566
- 4510-4559:4510-4559
volumes:
- localstack:/var/lib/localstack
- /var/run/docker.sock:/var/run/docker.sock
volumes:
localstack: