-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 1004 Bytes
/
docker-compose.yml
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
version: "3.8"
services:
db:
build: ./apps/backend/database
environment:
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- ./apps/backend/database/setup:/docker-entrypoint-initdb.d
# frontend:
# build:
# context: ./frontend
# command: ["npm", "run", "dev", "--", "--host"]
# ports:
# - "3000:3000"
# backend:
# build:
# context: ./backend
# command: ["/app/wait-for/wait-for", "db:5432", "--", "npm", "run", "dev"]
# ports:
# - "4000:4000"
# environment:
# - PORT=4000
# - HOST=0.0.0.0
# - NODE_ENV=development
# - PG_HOST=db
# - PG_PORT=5432
# - PG_USER=app_user
# - PG_PASSWORD=app_user
# - PG_DATABASE=example
# # For node-pg-migrate
# - DATABASE_URL=postgres://migration_user:migration_user@db:5432/example
# volumes:
# - ./backend:/app/:cached
# - /app/node_modules
# - /app/dist
# depends_on:
# - db