-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.ci.yml
81 lines (74 loc) · 1.74 KB
/
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
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
services:
e2e_test:
build:
context: .
target: test
image: ghcr.io/diegosteiner/heimv-test
environment:
APP_HOST: "e2e_test"
E2E_TARGET_HOST: "e2e_target:3002"
DATABASE_URL: postgresql://postgres:postgres@db/heimverwaltung_e2e
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: "true"
DISABLE_DATABASE_ENVIRONMENT_CHECK: "1"
RAILS_ENV: test
NODE_ENV: test
SELENIUM_HOST: "selenium:4444"
SMTP_SETTINGS: '{ "address":"mail" }'
MAIL_FROM: "[email protected]"
REDIS_URL: "redis://redis/1"
command: bin/check
depends_on:
- db
- selenium
- e2e_target
- redis
networks:
default:
selenium:
e2e_target:
build: .
image: ghcr.io/diegosteiner/heimv
ports:
- "3002:3002"
environment:
APP_HOST: "e2e_target:3002"
DATABASE_URL: postgresql://postgres:postgres@db/heimverwaltung_e2e
SMTP_SETTINGS: '{ "address":"mail" }'
MAIL_FROM: "[email protected]"
SECRET_KEY_BASE: "test"
RAILS_SERVE_STATIC_FILES: "true"
PORT: 3002
LOG_LEVEL: "debug"
RUBYOPT: "-W:no-deprecated -W:no-experimental"
REDIS_URL: "redis://redis/0"
depends_on:
- db
- mail
- redis
networks:
default:
selenium:
selenium:
image: selenium/standalone-chrome:119.0
logging:
driver: none
networks:
selenium:
db:
image: postgres:15-alpine
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: heimverwaltung_e2e
POSTGRES_PASSWORD: postgres
mail:
image: tophfr/mailcatcher
ports:
- "1080:80"
redis:
image: redis:6
volumes:
bundle:
db_data:
networks:
selenium: