-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 908 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 908 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
43
44
version: '3.7'
services:
database:
build:
context: .
dockerfile: Dockerfile-Postgres
image: server-db:latest
container_name: server-db
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
app:
build:
context: .
dockerfile: Dockerfile
#args:
# GITUSER: ${GITUSER}
# GITEMAIL: ${GITEMAIL}
# GITHUBPAT: ${GITHUBPAT}
image: server-app:latest
container_name: server-app
volumes:
- ./:/var/www/app
ports:
- 5000:5000
links:
- database
environment:
- NODE_ENV=development
- PORT=5000
- DB_HOST=database
- DB_USER=postgres
- DB_PASSWD=password
- DB_PORT=5432
- DB_DB=postgres
- DB_LIMIT=400
command:
sh -c 'npm i && npx nodemon index.js'