-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (60 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
63 lines (60 loc) · 1.66 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
services:
db:
image: postgres:latest
container_name: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${PG_JOBS_DB_PW}
POSTGRES_DB: ${PG_JOBS_DB_DATABASE}
ports:
- '${PG_JOBS_DB_PORT}:${PG_JOBS_DB_PORT}'
volumes:
- database:/var/lib/postgresql/data
- ./docker-init/postgres:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
job_executor:
image: runway_executor
container_name: job-executor
# restart: always
depends_on:
db:
condition: service_healthy
environment:
AWS_PROFILE: ${AWS_PROFILE}
DEPLOYMENT_MODE: LOCAL
INIT_TOKEN: ${INIT_TOKEN}
INIT_JOB_URL: ${INIT_JOB_URL}
entrypoint: python -u /executor/scripts/main.py
volumes:
- ./storage:/storage
- $HOME/.aws/credentials:/root/.aws/credentials:ro
app:
image: node
container_name: nodejs_app
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
DEPLOYMENT_MODE: LOCAL
PG_JOBS_DB_HOST: ${PG_JOBS_DB_HOST}
PG_JOBS_DB_PORT: ${PG_JOBS_DB_PORT}
PG_JOBS_DB_DATABASE: ${PG_JOBS_DB_DATABASE}
PG_JOBS_DB_USER: ${PG_JOBS_DB_USER}
PG_JOBS_DB_PW: ${PG_JOBS_DB_PW}
PG_JOBS_DB_PW_SECRET: ${PG_JOBS_DB_PW_SECRET}
APP_PORT: ${APP_PORT}
ports:
- "${APP_PORT}:${APP_PORT}"
volumes:
- ./app:/home/node/app
- ./app/node_modules:/home/node/app/node_modules
- ./storage:/storage
command: node /home/node/app/index.js
volumes:
database: