CoolFace
Apppublic

Mythus/Staging

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
docker-compose.yml44 linesDownload Raw Back to docker
1version: '3'2 3services:4  teledrive:5    command: bash -c "export NODE_OPTIONS='--openssl-legacy-provider --no-experimental-fetch' && yarn api prisma migrate deploy || yarn api prisma migrate resolve --applied "20220420012853_init" && node api/dist/index.js"6    labels:7      traefik.http.routers.server.rule: Host(`teledrive.localhost`)8      traefik.port: 40009    ports:10      - "${PORT:-4000}:${PORT:-4000}"11    expose:12      - ${PORT:-4000}13    build:14      context: ../.15      dockerfile: Dockerfile16      args:17        REACT_APP_TG_API_ID: ${TG_API_ID}18        REACT_APP_TG_API_HASH: ${TG_API_HASH}19    environment:20      DATABASE_URL: postgres://postgres:${DB_PASSWORD}@db:5432/teledrive?connect_timeout=60&pool_timeout=60&socket_timeout=6021      REDIS_URI: redis://redis:637922    env_file:23      - .env24    depends_on:25      - db26      - redis27 28  db:29    image: postgres:1330    restart: always31    environment:32      POSTGRES_USER: postgres33      POSTGRES_PASSWORD: ${DB_PASSWORD}34      POSTGRES_DB: teledrive35    volumes:36      - ./data:/var/lib/postgresql/data37 38  redis:39    image: redis:640    restart: always41 42volumes:43  teledrive_data:44