Cholangiocarcinoma (CCA) is a highly malignant disease with a poor prognosis, and mechanisms of initiation and development are not well characterized. It is long noncoding RNAs (lncRNAs) acting as miRNA decoys to regulate cancer-related RNAs in competing endogenous RNA (ceRNA) networks that suggest a possible molecular mechanism in CCA. The current study aims to find potential prognosis biomarkers and small molecule therapeutic targets based on the construction of a CCA prognosis-related ceRNA network. A transcriptome dataset for CCA was downloaded from the TCGA database. Differentially expressed lncRNAs (DElncRNAs), DEmiRNAs and DEmRNAs were identified based on the differential expression and a DEceRNA network was constructed using predicted miRNA-lncRNA and miRNA-mRNA interactions. Heat maps, PCA analysis, and Pathway enrichment analysis and GO enrichment analysis were conducted. The prognostic risk model and molecular docking were constructed based on identified key ceRNA networks. A DElncRNA-miRNA-mRNAs network consisting of 434 lncRNA-miRNA pairs and 284 miRNA-mRNA pairs with 200 lncRNAs, 21 miRNAs, and 245 mRNAs was constructed. There were three lncRNAs (AC090772.1, LINC00519, and THAP7-AS1) and their downstream mRNAs (MECOM, MBNL3, RCN2) screened out as prognostic factors in CAA. Three key networks (LINC00519/ hsa-mir-22/ MECOM, THAP7-AS1/hsa-mir-155/MBNL3, and THAP7-AS1/hsa-mir-155/RCN2) were identified based on binding sites prediction and survival analysis. A prognostic risk model was established with a good predictive ability (AUC = 0.66–0.83). Four anticancer small molecules, MECOM and 17-alpha-estradiol (−7.1 kcal/mol), RCN2 and emodin (−8.3 kcal/mol), RCN2 and alpha-tocopherol (−5.6 kcal/mol), and MBNL3 and 17-beta-estradiol (−7.1 kcal/mol) were identified. Based on the DEceRNA network and Kaplan–Meier survival analysis, we identified three important ceRNA networks associated with the poor prognosis of CCA. Four anti-cancer small molecules were screened out by computer-assisted drug screening as potential small molecules for the treatment of CCA. This study provides theoretical support for the development of ceRNA network-based drugs to improve the prognosis of CCA.