-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (47 loc) · 1.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (47 loc) · 1.19 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
# version: "3.8"
# services:
# postgres:
# image: postgres:latest
# container_name: backend_postgres_container
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# - POSTGRES_DB=postgres
# volumes:
# - ./volume/pg-data:/var/lib/postgresql/data
# ports:
# - "5433:5432"
# healthcheck:
# test:
# [
# "CMD",
# "pg_isready",
# "-h",
# "localhost",
# "-p",
# "5432",
# "-q",
# "-U",
# "postgres",
# ]
# interval: 5s
# timeout: 3s
# retries: 5
# backend-app:
# build:
# context: ./
# # target: dev
# dockerfile: Dockerfile
# container_name: backend_container
# ports:
# - "4002:4002"
# - "4001:4001"
# depends_on:
# postgres:
# condition: service_healthy
# environment:
# DATABASE_URL: postgresql://postgres:postgres@postgres:5432/comments?schema=public
# command: >
# sh -c "npx prisma generate --schema=./src/prisma/schema.prisma &&
# npx prisma db push --schema=./src/prisma/schema.prisma &&
# npm run start"