docker-compose.yml 656 Bytes
Newer Older
陈正乐 committed
1 2 3 4 5 6 7 8 9 10 11 12
version: '3'

services:
  postgres:
    image: postgres
    container_name: lae_pgsql
    environment:
      POSTGRES_PASSWORD: 111111
    ports:
      - "5433:5432"
    volumes:
      - ./lae_pg_data:/var/lib/postgresql/data
13
      - ./init_db/create_db.sql:/docker-entrypoint-initdb.d/create_db.sql
14
      - ./init_db/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
陈正乐 committed
15 16 17 18 19

  python:
    build:
      context: .
      dockerfile: Dockerfile
20
    image: lae_python_image:v1
陈正乐 committed
21 22 23 24 25
    container_name: lae_python
    ports:
      - "8003:8003"
    stdin_open: true
    tty: true
26
    command: sh -c "cd src && python gradio_app.py"
陈正乐 committed
27 28 29 30


volumes:
  lae_pg_data: