version: "2" services: postgres: image: postgres:10 ports: - "5432:5432" environment: POSTGRES_USER: postgre POSTGRES_PASSWORD: postgre POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --locale=ja_JP.UTF-8" volumes: - ./db/psgl:/var/lib/postgresql/data app: build: . depends_on: - postgres environment: TZ: "Asia/Tokyo" $ docker-compose up -d postgres $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS POR