-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 797 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 797 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
38
39
40
41
42
#
# Docker NodeJS Typescript Starter
# Example Docker Compose file
#
# For more information about the directives defined here:
# https://docs.docker.com/compose/compose-file/
# Docker compose file version
version: "3.6"
services:
# Web App #
web:
image: web:latest
build:
context: .
dockerfile: Dockerfile
working_dir: /app
env_file:
- .env
ports:
- "3000:3000"
depends_on:
- db
volumes:
- .:/app
command: yarn watch-ts
# DB
db:
image: postgres:${POSTGRES_IMAGE_VERSION}
environment:
POSTGRES_DB: "${DB_NAME}"
POSTGRES_USER: "${DB_USER}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"
env_file:
- .env
ports:
- "5432:5432"
volumes:
- ./postgres-data:/var/lib/postgresql