forked from getlago/lago-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.ci.yml
41 lines (37 loc) · 966 Bytes
/
docker-compose.ci.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
# This Docker Compose file is to use for CI purposes only
# At Lago we use it to run ours integrations tests
version: "3.8"
services:
db:
image: postgres:14.0-alpine
container_name: lago-db
restart: unless-stopped
environment:
POSTGRES_DB: lago
POSTGRES_USER: lago
POSTGRES_PASSWORD: lago
ports:
- 5432:5432
redis:
image: redis:6.2-alpine
container_name: lago_redis
restart: unless-stopped
ports:
- 6379:6379
api:
image: getlago/api:ci
container_name: lago-api
restart: unless-stopped
depends_on:
- "db"
environment:
RAILS_ENV: production
DATABASE_URL: postgres://lago:lago@db:5432/lago
REDIS_URL: redis://redis:6379
LAGO_FRONT_URL: http://localhost
SECRET_KEY_BASE: secret-key
LAGO_RSA_PRIVATE_KEY: ${LAGO_RSA_PRIVATE_KEY}
LAGO_DISABLE_SEGMENT: "true"
RAILS_LOG_TO_STDOUT: "true"
ports:
- 3000:3000