-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·45 lines (41 loc) · 944 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·45 lines (41 loc) · 944 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
45
version: '3'
networks:
commerce-network:
services:
node-graphql-commerce:
build: .
volumes:
- ./commerce:/commerce
- ./postgress-check:/postgress-check
ports:
- 9005:9005
command: bash -c "cd commerce && npm install && npm run start"
stdin_open: true
tty: true
networks:
- commerce-network
depends_on:
- postgresql
restart: always
# PostgreSQL:
# restart: always
# image: sameersbn/postgresql:10-2
# ports:
# - "5432:5432"
# env_file:
# - database.env
# networks:
# - commerce-network
# volumes:
# - ./database-data:/var/lib/postgresql
postgresql:
image: postgres:alpine
environment:
POSTGRES_DB: postgres_check
POSTGRES_USER: postgres_check
POSTGRES_PASSWORD: postgres_check
restart: always
volumes:
- ./database-data:/var/lib/postgresql
networks:
- commerce-network