-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
42 lines (38 loc) · 854 Bytes
/
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
services:
backend:
build: .
container_name: example-agents-project-backend
ports:
- "8080"
env_file:
- .env.docker
depends_on:
- postgres
- redis
load_balancer:
image: nginx:alpine
container_name: example-agents-project-load-balancer
ports:
- "8000:8000"
depends_on:
- backend
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
postgres:
image: postgres:14
container_name: example-agents-project-postgres-db
environment:
POSTGRES_DB: test_db
POSTGRES_USER: test-username
POSTGRES_PASSWORD: test-password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7
container_name: example-agents-project-test-redis
ports:
- "6379:6379"
volumes:
postgres_data: