-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.development.yaml
More file actions
35 lines (35 loc) · 897 Bytes
/
compose.development.yaml
File metadata and controls
35 lines (35 loc) · 897 Bytes
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
---
services:
app:
image: node:lts
restart: always
command: >
bash -xc '
mkdir -p ${PWD}/.cache/bin &&
corepack enable --install-directory ${PWD}/.cache/bin &&
export PATH=${PWD}/.cache/bin:${PWD}/node_modules/.bin:$$PATH &&
pnpm install --frozen-lockfile &&
exec pnpm run dev
'
user: ${UID}:${GID}
environment:
- HOME=${PWD}/.cache
- COREPACK_ENABLE_DOWNLOAD_PROMPT=0
- DATABASE_URL=mysql://glatasks:glatasks@db/glatasks
- DATA_DIR
- PROTOCOL_HEADER=X-Forwarded-Proto
volumes:
- ${PWD}:${PWD}
- ${DATA_DIR}:${DATA_DIR}
working_dir: ${PWD}
networks:
- network
depends_on:
db:
condition: service_healthy
migrate-dev:
condition: service_completed_successfully
logging:
options:
max-size: "1m"
max-file: "3"