-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
26 lines (25 loc) · 1.23 KB
/
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
version: "3"
services:
web:
container_name: backend
command: npm run dev
# Caso não tenha o env file, basta tirar essa linha e da build
# no docker novamente e levanta-lo
env_file:
- .env
build: .
volumes:
- ./:/app
ports: [
"3333:3333"
]
depends_on:
- db
db:
image: postgres:10.2-alpine
environment:
POSTGRES_USER: $USER_DATABASE
POSTGRES_PASSWORD: $PASSWORD_DATABASE
POSTGRES_DB: $DATABASE_NAME
ports:
- '5432:5432'