Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- node-server:
- build: ./build/node
- image: simple-node-image
- container_name: simple-node-container
- tty: true
- volumes:
- - ./volumes/app:/app
- ports:
- - "8080:3000"
- # 前回からの追加 PostgreSQLの設定
- depends_on:
- - db-server
- db-server:
- build: ./build/postgres
- image: simple-db-image
- container_name: simple-db-container
- restart: always
- environment:
- POSTGRES_PASSWORD: postgres
- POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --locale=ja_JP.UTF-8"
- LANG: ja_JP.utf8
- ports:
- - 5432:5432
- volumes:
- - ./volumes/db/pgdata:/var/lib/postgresql/data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement