-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
62 lines (58 loc) · 1.1 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
version: "3.9"
services:
postgres:
container_name: postgres
profiles:
- "dev"
- "localstack"
image: postgres:latest
ports:
- "5432:5432"
networks:
- dependency_network
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: db
redis:
container_name: redis
profiles:
- "dev"
- "localstack"
image: redis/redis-stack-server:latest
ports:
- "6379:6379"
networks:
- dependency_network
backend:
container_name: backend
profiles:
- "localstack"
depends_on:
- redis
build:
context: .
dockerfile: ./apps/backend/Dockerfile
env_file:
- ./apps/backend/docker.env
restart: always
ports:
- 3000:3000
networks:
- app_network
- dependency_network
frontend:
container_name: frontend
profiles:
- "localstack"
build:
context: .
dockerfile: ./apps/frontend/Dockerfile
restart: always
ports:
- 3001:80
networks:
app_network:
driver: bridge
dependency_network:
driver: bridge