mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/node-tutorial.git
synced 2026-08-19 20:44:16 +00:00
updated docker volume
This commit is contained in:
+31
-24
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user