Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. version: '3'
  2. services:
  3. node-server:
  4. build: ./build/node
  5. image: simple-node-image
  6. container_name: simple-node-container
  7. tty: true
  8. volumes:
  9. - ./volumes/app:/app
  10. ports:
  11. - "8080:3000"
  12. # 前回からの追加 PostgreSQLの設定
  13. depends_on:
  14. - db-server
  15. db-server:
  16. build: ./build/postgres
  17. image: simple-db-image
  18. container_name: simple-db-container
  19. restart: always
  20. environment:
  21. POSTGRES_PASSWORD: postgres
  22. POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --locale=ja_JP.UTF-8"
  23. LANG: ja_JP.utf8
  24. ports:
  25. - 5432:5432
  26. volumes:
  27. - ./volumes/db/pgdata:/var/lib/postgresql/data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement