執筆中

https://github.com/kagyuu/docker_ai_study/blob/main/docker-compose.yml

services:
  keras:
    build:
      context: .
      dockerfile: Dockerfile-gpu
      args:
        - PASSWD=${PASSWD}
    ports:
      - '2222:22'
    volumes:
      # $ sudo chown -R 0:0 <host_directory>
      - /var/keras-data:/root/Documents
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              # device_ids: ['0', '3']
              capabilities: [ gpu ]
    #restart: always

  postgres:
    image: postgres:latest
    container_name: postgres
    user: 5050:5050
    volumes:
      # $ sudo chown -R 5050:5050 <host_directory>
      - /var/pgsql-data/initdb.d/:/docker-entrypoint-initdb.d/
      - /var/pgsql-data/data:/var/lib/postgresql/data
    environment:
      POSTGRES_USER: root
      POSTGRES_PASSWORD: root
      POSTGRES_INITDB_ARGS: "--encoding=UTF-8"
    hostname: postgres
    #restart: always

  pgadmin4:
    image: dpage/pgadmin4:latest
    container_name: pgadmin4
    volumes:
      # $ sudo chown -R 5050:5050 <host_directory>
      - /var/pgadmin-data:/var/lib/pgadmin
    environment:
      PGADMIN_DEFAULT_EMAIL: root@example.com
      PGADMIN_DEFAULT_PASSWORD: root
      PGADMIN_DISABLE_POSTFIX: "False"
    hostname: pgadmin4
    depends_on:
      - postgres
    #restart: always


Docker


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS   sitemap
Last-modified: 2021-09-15 (水) 01:39:53 (128d)
Short-URL: https://at-sushi.com:443/pukiwiki/index.php?cmd=s&k=e2dd6bc08d
ISBN10
ISBN13
9784061426061