forked from upkoding/upkoding
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (35 loc) · 784 Bytes
/
docker-compose.yaml
File metadata and controls
37 lines (35 loc) · 784 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
36
37
# Docker-compose.yml version support, not internal version of this composition.
version: "3.8"
services:
db:
image: postgres
environment:
POSTGRES_USER: upkoding
POSTGRES_DB: upkoding
POSTGRES_PASSWORD: upkoding
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 5s
timeout: 5s
retries: 5
web:
build:
context: .
target: dev
environment:
DATABASE_URL: postgres://upkoding:upkoding@db:5432/upkoding
ports:
- "8000:8000"
volumes:
- .:/app
depends_on:
db:
condition: service_healthy
static:
image: node:14-slim
working_dir: /static
command: sh -c "npm install && npm start"
ports:
- "3000:3000"
volumes:
- ./_static:/static