-
Notifications
You must be signed in to change notification settings - Fork 9
/
compose.yml
54 lines (50 loc) · 1017 Bytes
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
services:
postgres:
image: postgres:13-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
restart: on-failure:5
prodder:
platform: linux/arm64
build:
context: .
dockerfile: Dockerfile
args:
RUBY_VERSION: 3.0
volumes:
- .:/app
- /app/config
depends_on:
postgres:
condition: service_healthy
environment:
PGHOST: localhost
PGPORT: "5432"
PGUSER: postgres
PGPASSWORD: postgres
network_mode: host
rspec:
profiles:
- test
extends:
service: prodder
command: bundle exec rspec
cucumber:
profiles:
- test
extends:
service: prodder
command: bundle exec cucumber
volumes:
postgres_data: