forked from atlp-rwanda/e-comm-team-brogrammers-bn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (28 loc) · 832 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (28 loc) · 832 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
version: '3'
services:
web:
# The custom image for our project based on node (From docker file)
image: node-backend
# Restart when a fatal error occurs
restart: on-failure:3
entrypoint: docker/entrypoint.sh
ports:
- "6000:6000"
depends_on:
- database
# The *host* will be "database"(the below image name)
database:
# postgres image will be pulled from "dockerhub" if it's not yet downloaded
image: postgres
restart: on-failure:2
environment:
# default postgres user *password*
POSTGRES_PASSWORD: admin123
# default postgres *user*
POSTGRES_USER: admin
# default postgres *database name*
POSTGRES_DB: ecommerce
ports:
- "4321:5432"
volumes:
- ./docker/init-test-db.sql:/docker-entrypoint-initdb.d/init-test-db.sql