-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yaml
38 lines (36 loc) · 950 Bytes
/
docker-compose.yaml
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
version: '3.9'
services:
postgres:
image: postgres:13.3
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
PGDATA: '/var/lib/postgresql/data/pgdata'
volumes:
- ./data:/var/lib/postgresql/data
ports:
- '5432:5432'
front:
build: .
environment:
PORT: 5173
ORIGIN: ${ORIGIN}
DATABASE_URL: ${DATABASE_URL}
ports:
- '5173:5173'
# front:
# image: node:16
# volumes:
# - ./build:/app/build
# - ./package.json:/app/package.json
# - ./package-lock.json:/app/package-lock.json
# - ./prisma/schema.prisma:/app/prisma/schema.prisma
# working_dir: /app
# command: bash -c "npm ci --omit=dev && npx prisma generate && node build"
# environment:
# PORT: 5173
# ORIGIN: ${ORIGIN}
# DATABASE_URL: ${DATABASE_URL}
# ports:
# - '5173:5173'