-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
83 lines (77 loc) · 1.62 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
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
version: '3.3'
networks:
network:
driver: bridge
services:
localstack:
image: localstack/localstack:1.0.4
networks:
- network
environment:
- SERVICES=s3:4566
- HOSTNAME=localstack
- HOSTNAME_EXTERNAL=localstack
- DEFAULT_REGION=us-east-1
aws-cli:
image: amazon/aws-cli
restart: on-failure
networks:
- network
depends_on:
- localstack
environment:
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- AWS_DEFAULT_REGION=us-east-1
entrypoint: /bin/sh -c
command: >
"
aws --endpoint-url=http://localstack:4566 s3api create-bucket --bucket bucket --region us-east-1
"
backend:
build:
context: ./backend
dockerfile: Dockerfile.backend
container_name: tracer-backend
networks:
- network
ports:
- "8080:8080"
env_file:
- env.list
depends_on:
- redis
- postgres
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.frontend
container_name: tracer-frontend
networks:
- network
env_file:
- env.list
ports:
- "3000:3000"
restart: unless-stopped
postgres:
image: postgres:latest
networks:
- network
container_name: postgres
environment:
POSTGRES_DB: test
POSTGRES_USER: sudo
POSTGRES_PASSWORD: sudo
ports:
- "5432:5432"
volumes:
- ./postgres/data:/var/lib/postgresql/data
redis:
image: redis:latest
container_name: redis
networks:
- network
ports:
- "6379:6379"