forked from globalbibletools/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
81 lines (81 loc) · 1.83 KB
/
compose.yaml
File metadata and controls
81 lines (81 loc) · 1.83 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
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:
server:
build:
context: .
target: dev
dockerfile: Dockerfile.server
restart: always
environment:
DATABASE_URL: postgresql://postgres:asdfasdf@db:5432/postgres
TEST_DATABASE_URL: postgresql://postgres:asdfasdf@test_db:5432/postgres
JOB_FUNCTION_URL: http://job_worker:8080/2015-03-31/functions/function/invocations
volumes:
- ./:/app
- server-node-modules:/app/node_modules
ports:
- 3000:3000
depends_on:
db:
condition: service_healthy
job_worker:
build:
context: .
target: dev
dockerfile: Dockerfile.job-worker
restart: always
environment:
DATABASE_URL: postgresql://postgres:asdfasdf@db:5432/postgres
volumes:
- ./:/app
- job-worker-node-modules:/app/node_modules
ports:
- 9000:8080
depends_on:
db:
condition: service_healthy
env_file:
- path: .env
required: false
db:
build:
dockerfile: db/Dockerfile
restart: always
shm_size: 128mb
user: postgres
volumes:
- db-data:/var/lib/postgresql/data
- ./db/scripts/docker-initdb.sh:/docker-entrypoint-initdb.d/docker-initdb.sh
- ./db:/db
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=asdfasdf
expose:
- 5432
ports:
- 5432:5432
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
test_db:
image: postgres:14
restart: always
shm_size: 128mb
user: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=asdfasdf
expose:
- 5432
ports:
- 5433:5432
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
volumes:
db-data:
job-worker-node-modules:
server-node-modules: