This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.ci.yml
79 lines (73 loc) · 1.75 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
version: "3.7"
services:
e2e_test:
build:
context: .
target: build
command: ["bin/check"]
environment:
APP_HOST: "e2e_test"
APP_BASE_URL: "e2e_test:3001"
E2E_APP_HOST: "e2e_target:3002"
DATABASE_URL: postgresql://postgres:postgres@db/orca_e2e
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: "true"
SEND_PROGRAM_CHANGE_LOG_NOTIFICATIONS: "true"
DISABLE_DATABASE_ENVIRONMENT_CHECK: "true"
RAILS_ENV: test
SELENIUM_HOST: "selenium:4444"
RUBYOPT: "-W:no-deprecated -W:no-experimental"
REDIS_URL: "redis://redis/0"
depends_on:
- db
- selenium
- e2e_target
- redis
networks:
default:
selenium:
e2e_target:
build: .
image: mova21-orca:latest
ports:
- "3002:3002"
environment:
DATABASE_URL: postgresql://postgres:postgres@db/orca_e2e
SECRET_KEY_BASE: "test"
RAILS_SERVE_STATIC_FILES: "true"
PORT: 3002
LOG_LEVEL: "debug"
RUBYOPT: "-W:no-deprecated -W:no-experimental"
APP_BASE_URL: "e2e_target:3002"
APP_HOST: "e2e_target:3002"
RAILS_ENV: production
SMTP_HOST: ${SMTP_HOST}
SMTP_USER: ${SMTP_USER}
SMTP_PASSWORD: ${SMTP_PASSWORD}
SMTP_PORT: ${SMTP_PORT}
SMTP_AUTH: ${SMTP_AUTH:-plain}
depends_on:
- db
- mail
networks:
default:
selenium:
entrypoint: ["/entrypoint"]
selenium:
image: selenium/standalone-chrome-debug
logging:
driver: none
networks:
selenium:
db:
image: postgres:11-alpine
environment:
POSTGRES_DB: orca_e2e
POSTGRES_PASSWORD: postgres
mail:
image: tophfr/mailcatcher
ports:
- "1080:80"
redis:
image: redis:6
networks:
selenium: