-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
51 lines (49 loc) · 1.38 KB
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
services:
db:
#hostname: staff_api_db
image: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 30s
retries: 3
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: staff_api_test
ports:
- 5432:5432
migrator:
build:
context: ${PWD}/spec/migration
container_name: migrator
depends_on:
db:
condition: service_healthy
environment:
GITHUB_ACTION: ${GITHUB_ACTION:-}
PG_DATABASE_URL: postgresql://postgres:password@db:5432/staff_api_test
test:
image: placeos/service-spec-runner:${CRYSTAL_VERSION:-latest}
hostname: staff_api
volumes:
- ${PWD}/spec:/app/spec
- ${PWD}/src:/app/src
- ${PWD}/lib:/app/lib
- ${PWD}/shard.lock:/app/shard.lock
- ${PWD}/shard.override.yml:/app/shard.override.yml
- ${PWD}/shard.yml:/app/shard.yml.input
- ${PWD}/coverage:/app/coverage
depends_on:
- migrator
- db
security_opt:
- seccomp:unconfined
environment:
PG_DATABASE_URL: postgresql://postgres:password@db:5432/staff_api_test
PLACE_URI: http://toby.dev.place.tech
PLACE_EMAIL: toby@place.technology.com
PLACE_PASSWORD: password
PLACE_AUTH_CLIENT_ID: abc123
PLACE_AUTH_SECRET: abc123
GITHUB_ACTION: ${GITHUB_ACTION-}