forked from oldschoolgg/oldschoolbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
33 lines (31 loc) · 854 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
services:
db:
image: postgres:16-alpine
command: -c 'max_connections=1000'
restart: always
container_name: osb_database
ports:
- "5435:5435"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGPORT: 5435
redis:
image: redis:latest
restart: always
environment:
- REDIS_PORT=6379
ports:
- "6379:6379"
app:
build:
context: .
dockerfile: Dockerfile
target: build-run
depends_on:
- db
- redis
environment:
ROBOCHIMP_DATABASE_URL: postgresql://postgres:postgres@db:5435/robochimp_integration_test?connection_limit=10&pool_timeout=0&schema=public
DATABASE_URL: postgresql://postgres:postgres@db:5435/osb_integration_test?connection_limit=10&pool_timeout=0&schema=public
WAIT_HOSTS: db:5435, redis:6379