-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (33 loc) · 904 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
version: "3.7"
services:
database: #ESSE É O NOME DO SERVICE QUE DEVE ESTAR NO ARQUIVO DE CRIAÇÃO DE CONEXÃO
image: postgres
container_name: database_ignite
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=lebkkwcevdgwef
- POSTGRES_PASSWORD=1d1de91a795d6cb130d74915d374abd31fc19952bf775db5ead6945adc9e2fea
- POSTGRES_NAME=d7e33mqg5ottr8
app:
build: .
container_name: rentx
restart: always
command: sh -c "npm run migrate run && npm run start"
ports:
- 3000:3000
volumes:
- .:/usr/app
links:
- database
depends_on:
- database
evironment:
DB_HOST: ec2-54-211-255-161.compute-1.amazonaws.com
DB_USER: lebkkwcevdgwef
DB_PASS: 1d1de91a795d6cb130d74915d374abd31fc19952bf775db5ead6945adc9e2fea
DB_NAME: d7e33mqg5ottr8
volumes:
pgdata:
driver: local