-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 932 Bytes
/
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
services:
portfolio-backend:
build:
target: production
volumes:
- './src/app:/app/app'
- './localstack/config:/root/.aws/config'
image: 'portfolio-backend:production'
environment:
logger_json_format: false
aws_endpoint: 'http://localstack:4566'
command: --reload
ports:
- '8080:8080'
networks:
- production
depends_on:
- localstack
localstack:
image: localstack/localstack
ports:
- '4566:4566'
- '4510-4559:4510-4559'
environment:
DEBUG: 1
SERVICES: sns
networks:
- production
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- './localstack/localstack-entrypoint.sh:/etc/localstack/init/ready.d/init-aws.sh'
- './localstack/config:/root/.aws/config'
tests:
build:
target: tests
image: 'portfolio-backend:tests'
networks:
production:
driver: bridge