updated docker volume

This commit is contained in:
Jackk Goh
2018-03-15 17:00:30 +08:00
parent 1ec911b5ec
commit 884ae3c679
1002 changed files with 775 additions and 24 deletions
+31 -24
View File
@@ -1,25 +1,32 @@
server:
image: node:7
command: npm run start:dev
working_dir: /app
volumes:
- .:/app
environment:
PORT: 3000
CONNECTION_STRING_DEV: postgres://user:password@db/db
ports:
- "3000:3000"
- "5858:5858"
links:
- db
db:
image: postgres:9.3
expose:
- 5432
volumes:
- ./dbdata:/var/lib/postgresql/data
version: '2'
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
POSTGRES_DB: db
services:
server:
image: node:7
command: npm run start:dev
working_dir: /app
volumes:
- .:/app
environment:
PORT: 3000
CONNECTION_STRING_DEV: postgres://user:password@db/db
ports:
- "3000:3000"
- "5858:5858"
links:
- db
db:
image: postgres:9.3
expose:
- 5432
volumes:
- postgresql-volume:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
POSTGRES_DB: db
volumes:
postgresql-volume:
external: true